mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Fixed the pool not checking for dead items. Closes #86.
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user