Open Crates will now eject into the block below not only if it's an air block but also if it has no collision box. So yes, you can drop stuff on water now. Closes #454

This commit is contained in:
Lizbeth Rika committed 2015-01-04 01:13:34 +00:00
1 parent f71c9f8d51
commit 270d921e51
1 file changed
+1 -1
@@ -48,7 +48,7 @@ public class TileOpenCrate extends TileSimpleInventory {
public boolean canEject() {
Block blockBelow = worldObj.getBlock(xCoord, yCoord - 1, zCoord);
return blockBelow.isAir(worldObj, xCoord, yCoord - 1, zCoord);
return blockBelow.isAir(worldObj, xCoord, yCoord - 1, zCoord) || blockBelow.getCollisionBoundingBoxFromPool(worldObj, xCoord, yCoord - 1, zCoord) == null;
}
public void eject(ItemStack stack, boolean redstone) {