Fixed #65 better detection of lift passable blocks
This commit is contained in:
parent
1e729938de
commit
7fef5df4b3
1 changed files with 2 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue