removeResourceFromArea()
Pass found item in slot directly to addToStash requst for small optimisation
This commit is contained in:
parent
d920dceb53
commit
704b337a3c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user