From 1306558045d4f4230133df84b888e894e3277dee Mon Sep 17 00:00:00 2001 From: Leo dev Date: Wed, 12 Nov 2025 20:27:50 +0100 Subject: [PATCH] Fixed hitbox --- src/main/java/dev/kleo/redstonerewired/CableBlock.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/dev/kleo/redstonerewired/CableBlock.java b/src/main/java/dev/kleo/redstonerewired/CableBlock.java index 8e7b4da..38bbd4c 100644 --- a/src/main/java/dev/kleo/redstonerewired/CableBlock.java +++ b/src/main/java/dev/kleo/redstonerewired/CableBlock.java @@ -50,16 +50,16 @@ public class CableBlock extends Block { @Override protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) { - VoxelShape shape = Block.createCuboidShape(6, 0, 6, 10, 1, 10); // center post + VoxelShape shape = Block.createCuboidShape(6, 6, 6, 10, 10, 10); if (state.get(NORTH)) - shape = VoxelShapes.union(shape, Block.createCuboidShape(6, 0, 0, 10, 1, 6)); + shape = VoxelShapes.union(shape, Block.createCuboidShape(6, 6, 0, 10, 10, 6)); if (state.get(SOUTH)) - shape = VoxelShapes.union(shape, Block.createCuboidShape(6, 0, 10, 10, 1, 16)); + shape = VoxelShapes.union(shape, Block.createCuboidShape(6, 6, 10, 10, 10, 16)); if (state.get(EAST)) - shape = VoxelShapes.union(shape, Block.createCuboidShape(10, 0, 6, 16, 1, 10)); + shape = VoxelShapes.union(shape, Block.createCuboidShape(10, 6, 6, 16, 10, 10)); if (state.get(WEST)) - shape = VoxelShapes.union(shape, Block.createCuboidShape(0, 0, 6, 6, 1, 10)); + shape = VoxelShapes.union(shape, Block.createCuboidShape(0, 6, 6, 6, 10, 10)); return shape; }