Fixed ItemContainer not setting the position of a contained item when it's placed in the ItemInventory, minor refactoring
This commit is contained in:
@@ -258,13 +258,7 @@ namespace Barotrauma
|
||||
item.ParentInventory = null;
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void DropItem(Item item)
|
||||
{
|
||||
item.Drop(null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
protected virtual void CreateSlots()
|
||||
{
|
||||
slots = new InventorySlot[capacity];
|
||||
@@ -311,7 +305,7 @@ namespace Barotrauma
|
||||
{
|
||||
CreateNetworkEvent();
|
||||
|
||||
DropItem(draggingItem);
|
||||
draggingItem.Drop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user