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 itemToReturn = hideoutArea.slots.find((slot) => slot.locationIndex === slotIndexToRemove).item[0];
const request: IAddItemDirectRequest = { const request: IAddItemDirectRequest = {
itemWithModsToAdd: [ itemWithModsToAdd: [itemToReturn],
{
_id: this.hashUtil.generate(),
_tpl: itemToReturn._tpl,
upd: itemToReturn.upd
}
],
foundInRaid: !!itemToReturn.upd.SpawnedInSession, foundInRaid: !!itemToReturn.upd.SpawnedInSession,
callback: null, callback: null,
useSortingTable: false useSortingTable: false