dont send upgrades back to client for gear area

This commit is contained in:
CWX 2024-08-26 20:39:04 +01:00
parent 7dd240b600
commit b3b36c37ee

View File

@ -294,7 +294,7 @@ export class HideoutController {
// Dont inform client when upgraded area is hall of fame, BSG doesn't inform client this specifc upgrade has occurred
// will break client if sent
if (![HideoutAreas.PLACE_OF_FAME].includes(dbHideoutArea.type)) {
if (![HideoutAreas.PLACE_OF_FAME].includes(dbHideoutArea.type) && ![HideoutAreas.EQUIPMENT_PRESETS_STAND].includes(dbHideoutArea.type)) {
this.addContainerUpgradeToClientOutput(sessionID, dbHideoutArea.type, dbHideoutArea, hideoutStage, output);
}
@ -365,10 +365,6 @@ export class HideoutController {
slotId: "Pockets",
};
pmcData.Inventory.items.push(mannequinPocketItemToAdd);
// Inform client of new item being added to inventory
output.profileChanges[sessionId].items.new.push(mannequinToAdd);
output.profileChanges[sessionId].items.new.push(mannequinPocketItemToAdd);
}
}
}