diff --git a/CHANGELOG.md b/CHANGELOG.md index 36a7a896c..2189a5702 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Fixed new items inserted after crafting in Grid being laggy - Fixed flickering of items in Grid - Fixed getting a stack of unstackable items from Grid +- Fixed Cable not having a collision box - Check if the Constructor can actually place said block in the world **Features** diff --git a/src/main/java/refinedstorage/block/BlockCable.java b/src/main/java/refinedstorage/block/BlockCable.java index 2aa216733..9fdb19e6f 100755 --- a/src/main/java/refinedstorage/block/BlockCable.java +++ b/src/main/java/refinedstorage/block/BlockCable.java @@ -9,11 +9,12 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; -import net.minecraft.world.World; import refinedstorage.tile.TileController; import refinedstorage.tile.TileMachine; public class BlockCable extends BlockBase { + public static final AxisAlignedBB CABLE_AABB = new AxisAlignedBB(4 * (1F / 16F), 4 * (1F / 16F), 4 * (1F / 16F), 1 - 4 * (1F / 16F), 1 - 4 * (1F / 16F), 1 - 4 * (1F / 16F)); + public static final PropertyBool NORTH = PropertyBool.create("north"); public static final PropertyBool EAST = PropertyBool.create("east"); public static final PropertyBool SOUTH = PropertyBool.create("south"); @@ -64,14 +65,7 @@ public class BlockCable extends BlockBase { @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) { - float pixel = 1F / 16F; - - return new AxisAlignedBB(4 * pixel, 4 * pixel, 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel); - } - - @Override - public AxisAlignedBB getCollisionBoundingBox(IBlockState state, World world, BlockPos pos) { - return getBoundingBox(state, world, pos); + return CABLE_AABB; } @Override