(5a377a8ee) Unstable v0.9.1000.0
This commit is contained in:
@@ -125,7 +125,7 @@ namespace Barotrauma
|
||||
{
|
||||
public readonly Entity Entity;
|
||||
|
||||
public readonly UInt16 OriginalID;
|
||||
public readonly UInt16 OriginalID, OriginalInventoryID;
|
||||
|
||||
public readonly bool Remove = false;
|
||||
|
||||
@@ -133,6 +133,10 @@ namespace Barotrauma
|
||||
{
|
||||
Entity = entity;
|
||||
OriginalID = entity.ID;
|
||||
if (entity is Item item && item.ParentInventory?.Owner != null)
|
||||
{
|
||||
OriginalInventoryID = item.ParentInventory.Owner.ID;
|
||||
}
|
||||
Remove = remove;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user