Fixed ItemContainer not setting the position of a contained item when it's placed in the ItemInventory, minor refactoring

This commit is contained in:
Regalis
2017-02-07 20:47:24 +02:00
parent d46207916f
commit e2a872ad90
5 changed files with 10 additions and 31 deletions
+2 -8
View File
@@ -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();
}
}