Merge pull request #41 from mrhid6/patch-1

Update InvisibleMultiblock.java
This commit is contained in:
brandon3055 committed 2015-04-16 11:03:23 +10:00
commit 64870498e2
1 file changed
+10
@@ -180,6 +180,16 @@ public class InvisibleMultiblock extends BlockDE implements IHudDisplayBlock {
}
return super.getSelectedBoundingBoxFromPool(world, x, y, z);
}
@Override
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) {
int meta = world.getBlockMetadata(x, y, z);
if(meta == 2){
return AxisAlignedBB.getBoundingBox(x, y, z, x, y, z);
}
return super.getCollisionBoundingBoxFromPool(world, x, y, z);
}
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {