Fix missing hitbox of single block cable (#2593)
It prevented user from destroying last cable piece as it could not
be hit without being connected to other cable or a machine.
Bug was introduced in commit f39c619c
"Fix cable shape computation".
This commit is contained in:
parent
61878d4f81
commit
94ef6d1562
1 changed files with 1 additions and 2 deletions
|
@ -24,7 +24,6 @@
|
|||
|
||||
package techreborn.blocks.cable;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.util.shape.VoxelShape;
|
||||
|
@ -40,7 +39,7 @@ public final class CableShapeUtil {
|
|||
CableBlock cableBlock = (CableBlock) state.getBlock();
|
||||
|
||||
final double size = cableBlock.type.cableThickness;
|
||||
final VoxelShape baseShape = Block.createCuboidShape(size, size, size, 1 - size, 1 - size, 1 - size);
|
||||
final VoxelShape baseShape = VoxelShapes.cuboid(size, size, size, 1 - size, 1 - size, 1 - size);
|
||||
|
||||
final List<VoxelShape> connections = new ArrayList<>();
|
||||
for (Direction dir : Direction.values()) {
|
||||
|
|
Loading…
Reference in a new issue