Update InvisibleMultiblock.java

hey something for the energy pylon sphere, removed the player collision so can walk through it.
This commit is contained in:
mrhid6 committed 2015-03-23 01:33:03 +00:00
1 parent 2113387202
commit 027bac5f8f
1 file changed
+10
@@ -179,6 +179,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) {