From 539b505c61335ad52dbade9033a59903f4995079 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 31 Dec 2024 10:07:21 +0000 Subject: [PATCH] Added null protection to `updateGlobalEvents` --- project/src/services/SeasonalEventService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/services/SeasonalEventService.ts b/project/src/services/SeasonalEventService.ts index 98f57b89..3b8e1f90 100644 --- a/project/src/services/SeasonalEventService.ts +++ b/project/src/services/SeasonalEventService.ts @@ -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();