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

Added guard against missing trader insuranceStart mesages inside sendInsuredItems()

(cherry picked from commit 0d9bd9a6d3ad35f9b371c97e8038efc15349e107)
This commit is contained in:
Dev 2024-07-22 13:24:00 +01:00
parent 7d57a80e20
commit 4a4d65ee4c

View File

@ -110,7 +110,7 @@ export class InsuranceService
sessionID,
traderEnum,
MessageType.NPC_TRADER,
this.randomUtil.getArrayValue(dialogueTemplates?.insuranceStart),
this.randomUtil.getArrayValue(dialogueTemplates?.insuranceStart ?? ["INSURANCE START MESSAGE MISSING"]),
undefined,
this.timeUtil.getHoursAsSeconds(
globals.config.Insurance.MaxStorageTimeInHour,