Fix trying to doublespawn knapsack and extended armor inventory on death. Fixes #988.

This commit is contained in:
Qowyn committed 2014-09-20 16:30:51 +02:00
1 parent 263efb8b11
commit ceb08f9741
3 files changed
+10 -8

No files matched your search

@@ -238,18 +238,19 @@ public class ArmorExtended implements IInventory
}
}
public void dropItems (ArrayList<EntityItem> drops)
public void dropItems ()
{
EntityPlayer player = parent.get();
player.captureDrops = true;
for (int i = 0; i < 4; ++i)
{
if (this.inventory[i] != null)
{
EntityItem entityItem = player.func_146097_a(this.inventory[i], true, false);
drops.add(entityItem);
player.func_146097_a(this.inventory[i], true, false);
this.inventory[i] = null;
}
}
player.captureDrops = false;
}
@Override