Fixed the pool not checking for dead items. Closes #86.

This commit is contained in:
Vasco Lavos committed 2014-06-04 15:21:20 +01:00
1 parent 96c65380df
commit f71dc6a321
1 file changed
+4 -1
@@ -83,7 +83,7 @@ public class TilePool extends TileMod implements IManaPool {
}
public boolean collideEntityItem(EntityItem item) {
if(craftCooldown > 0)
if(craftCooldown > 0 || item.isDead)
return false;
boolean didChange = false;
@@ -150,6 +150,9 @@ public class TilePool extends TileMod implements IManaPool {
List<EntityItem> items = worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(xCoord, yCoord, zCoord, xCoord + 1, yCoord + 1, zCoord + 1));
for(EntityItem item : items) {
if(item.isDead)
continue;
ItemStack stack = item.getEntityItem();
if(stack != null && stack.getItem() instanceof IManaItem) {
IManaItem mana = (IManaItem) stack.getItem();