mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Fix trying to doublespawn knapsack and extended armor inventory on death. Fixes #988.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user