Skip to content

Commit

Permalink
Added null protection to updateGlobalEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
Chomp committed Dec 31, 2024
1 parent 107dd1a commit 539b505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/src/services/SeasonalEventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 539b505

Please sign in to comment.