removeResourceFromArea() Pass found item in slot directly to addToStash requst for small optimisation

This commit is contained in:
Dev 2024-02-01 12:53:30 +00:00
parent d920dceb53
commit 704b337a3c

View File

@ -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