mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Added null guards
This commit is contained in:
parent
4740fa8cf1
commit
cb68bf83c6
@ -756,7 +756,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