Fix exploit where FiR status was preserved when merging non FiR items into a FiR stack
This commit is contained in:
parent
b5a3f2fe32
commit
0de6f201fe
@ -297,6 +297,12 @@ export class InventoryController
|
|||||||
sourceItem.upd.StackObjectsCount = 1;
|
sourceItem.upd.StackObjectsCount = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove FiR status from destination stack when source stack has no FiR but destination does
|
||||||
|
if (!sourceItem.upd.SpawnedInSession && destinationItem.upd.SpawnedInSession)
|
||||||
|
{
|
||||||
|
delete destinationItem.upd.SpawnedInSession;
|
||||||
|
}
|
||||||
|
|
||||||
destinationItem.upd.StackObjectsCount += sourceItem.upd.StackObjectsCount; // Add source stackcount to destination
|
destinationItem.upd.StackObjectsCount += sourceItem.upd.StackObjectsCount; // Add source stackcount to destination
|
||||||
output.profileChanges[sessionID].items.del.push({ _id: sourceItem._id }); // Inform client source item being deleted
|
output.profileChanges[sessionID].items.del.push({ _id: sourceItem._id }); // Inform client source item being deleted
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user