Fixed unlocked weapon reward box from hideout craft returning an error when opened

This commit is contained in:
Dev 2024-07-10 14:19:48 +01:00
parent 49e5e8413a
commit 44e6735f80

View File

@ -878,7 +878,7 @@ export class InventoryController
let foundInRaid = openedItem.upd?.SpawnedInSession; let foundInRaid = openedItem.upd?.SpawnedInSession;
const rewards: Item[][] = []; const rewards: Item[][] = [];
if (isSealedWeaponBox) if (isSealedWeaponBox || containerDetailsDb[1]._id === "665829424de4820934746ce6") // Temp fix for unlocked weapon crate hideout craft
{ {
const containerSettings = this.inventoryHelper.getInventoryConfig().sealedAirdropContainer; const containerSettings = this.inventoryHelper.getInventoryConfig().sealedAirdropContainer;
rewards.push(...this.lootGenerator.getSealedWeaponCaseLoot(containerSettings)); rewards.push(...this.lootGenerator.getSealedWeaponCaseLoot(containerSettings));