mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-12 21:50:43 -05:00
Added null guards
This commit is contained in:
parent
3888acd597
commit
0e47c56198
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user