Add safeguard against drops not being the same as capturedrops. Moved capturing of drops out of armor and knapsack stuff.

This commit is contained in:
Qowyn committed 2014-10-05 22:04:00 +02:00
1 parent 03755be47d
commit 312fd47360
3 files changed
+14 -4

No files matched your search

@@ -161,7 +161,7 @@ public class KnapsackInventory implements IInventory
public void dropItems ()
{
EntityPlayer player = parent.get();
player.captureDrops = true;
for (int i = 0; i < inventory.length; ++i)
{
if (this.inventory[i] != null)
@@ -170,7 +170,6 @@ public class KnapsackInventory implements IInventory
this.inventory[i] = null;
}
}
player.captureDrops = false;
}
public void unequipItems ()