mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Added null protection to updateGlobalEvents
This commit is contained in:
parent
107dd1a274
commit
539b505c61
@ -409,10 +409,10 @@ export class SeasonalEventService {
|
|||||||
if (event.settings?.zombieSettings?.enabled) {
|
if (event.settings?.zombieSettings?.enabled) {
|
||||||
this.configureZombies(event.settings?.zombieSettings);
|
this.configureZombies(event.settings?.zombieSettings);
|
||||||
}
|
}
|
||||||
if (event.settings.removeEntryRequirement) {
|
if (event.settings?.removeEntryRequirement) {
|
||||||
this.removeEntryRequirement(event.settings.removeEntryRequirement);
|
this.removeEntryRequirement(event.settings.removeEntryRequirement);
|
||||||
}
|
}
|
||||||
if (event.settings.replaceBotHostility) {
|
if (event.settings?.replaceBotHostility) {
|
||||||
this.replaceBotHostility(this.seasonalEventConfig.hostilitySettingsForEvent.zombies);
|
this.replaceBotHostility(this.seasonalEventConfig.hostilitySettingsForEvent.zombies);
|
||||||
}
|
}
|
||||||
this.addPumpkinsToScavBackpacks();
|
this.addPumpkinsToScavBackpacks();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user