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
-7
View File
@@ -13,13 +13,6 @@ namespace Barotrauma
this.container = container;
}
protected override void DropItem(Item item)
{
item.Drop();
if (item.body != null) item.body.Enabled = true;
item.SetTransform(container.Item.SimPosition, 0.0f);
}
public override int FindAllowedSlot(Item item)
{
for (int i = 0; i < capacity; i++)