From 963e0a8739b9a87061fef601f2ba0addf3595267 Mon Sep 17 00:00:00 2001 From: Kaeno Date: Sat, 10 Feb 2024 12:30:54 +0000 Subject: [PATCH] Dont inform client when hall of fame is upgraded as BSG doesnt inform the client upgrade has occurred, Prevents client from locking up --- project/src/controllers/HideoutController.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index 415d907b..457a0e0a 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -293,8 +293,12 @@ export class HideoutController // Add/upgrade stash item in player inventory this.addUpdateInventoryItemToProfile(pmcData, dbHideoutArea, hideoutStage); - // Inform client of changes - this.addContainerUpgradeToClientOutput(output, sessionID, dbHideoutArea.type, dbHideoutArea, hideoutStage); + // Dont inform client when upgraded area is hall of fame, BSG doesnt inform client upgrade has occurred, will break client if data is sent + if (dbHideoutArea.type !== HideoutAreas.PLACE_OF_FAME) + { + // Inform client of changes + this.addContainerUpgradeToClientOutput(output, sessionID, dbHideoutArea.type, dbHideoutArea, hideoutStage); + } // Some areas like gun stand have a child area linked to it, it needs to do the same as above const childDbArea = this.databaseServer.getTables().hideout.areas.find((x) =>