mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user