0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 05:30:43 -05:00

Added null protection to updateGlobalEvents

This commit is contained in:
Chomp 2024-12-31 10:07:21 +00:00
parent 107dd1a274
commit 539b505c61

View File

@ -409,10 +409,10 @@ export class SeasonalEventService {
if (event.settings?.zombieSettings?.enabled) {
this.configureZombies(event.settings?.zombieSettings);
}
if (event.settings.removeEntryRequirement) {
if (event.settings?.removeEntryRequirement) {
this.removeEntryRequirement(event.settings.removeEntryRequirement);
}
if (event.settings.replaceBotHostility) {
if (event.settings?.replaceBotHostility) {
this.replaceBotHostility(this.seasonalEventConfig.hostilitySettingsForEvent.zombies);
}
this.addPumpkinsToScavBackpacks();