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

Added null guards

This commit is contained in:
Chomp 2024-12-27 16:04:23 +00:00
parent 3888acd597
commit 0e47c56198

View File

@ -760,7 +760,7 @@ export class SeasonalEventService {
}
const mapData: ILocation = maps[mapName];
if (typeof mapData.base.Events.Khorovod?.Chance !== "undefined") {
if (typeof mapData.base?.Events?.Khorovod?.Chance !== "undefined") {
mapData.base.Events.Khorovod.Chance = 100;
}
}