From 704b337a3c0cd03e66b50e02ac9271d2325e8820 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 1 Feb 2024 12:53:30 +0000 Subject: [PATCH] `removeResourceFromArea()` Pass found item in slot directly to addToStash requst for small optimisation --- project/src/controllers/HideoutController.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/project/src/controllers/HideoutController.ts b/project/src/controllers/HideoutController.ts index 792fb670..8b10a8aa 100644 --- a/project/src/controllers/HideoutController.ts +++ b/project/src/controllers/HideoutController.ts @@ -500,13 +500,7 @@ export class HideoutController const itemToReturn = hideoutArea.slots.find((slot) => slot.locationIndex === slotIndexToRemove).item[0]; const request: IAddItemDirectRequest = { - itemWithModsToAdd: [ - { - _id: this.hashUtil.generate(), - _tpl: itemToReturn._tpl, - upd: itemToReturn.upd - } - ], + itemWithModsToAdd: [itemToReturn], foundInRaid: !!itemToReturn.upd.SpawnedInSession, callback: null, useSortingTable: false