Fixed #65 better detection of lift passable blocks

This commit is contained in:
LemADEC 2016-05-15 01:12:31 -04:00
parent 1e729938de
commit 7fef5df4b3

View file

@ -112,11 +112,9 @@ public class TileEntityLift extends TileEntityAbstractEnergy {
private boolean isPassableBlock(int yPosition) {
Block block = worldObj.getBlock(xCoord, yPosition, zCoord);
//TODO: Make configurable or less specific
return block.isAssociatedBlock(Blocks.air)
|| block.isAssociatedBlock(Blocks.wall_sign)
|| block.isAssociatedBlock(Blocks.standing_sign)
|| worldObj.isAirBlock(xCoord, yPosition, zCoord);
|| worldObj.isAirBlock(xCoord, yPosition, zCoord)
|| block.getCollisionBoundingBoxFromPool(worldObj, xCoord, yPosition, zCoord) == null;
}
private void liftEntity() {