From cdce1aa9622160e2b50d3e43aa8dfde369fe6073 Mon Sep 17 00:00:00 2001 From: vini2003 Date: Sun, 15 Oct 2023 20:47:35 -0300 Subject: [PATCH] chore: inspections.xml/Project_default.xml --- Project_Default.xml | 11 +++++++++++ .../block/entity/HoloBridgeProjectorBlockEntity.java | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Project_Default.xml diff --git a/Project_Default.xml b/Project_Default.xml new file mode 100644 index 000000000..7916988f5 --- /dev/null +++ b/Project_Default.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/src/main/java/com/github/mixinors/astromine/common/block/entity/HoloBridgeProjectorBlockEntity.java b/src/main/java/com/github/mixinors/astromine/common/block/entity/HoloBridgeProjectorBlockEntity.java index 32119120d..b6eecaa19 100644 --- a/src/main/java/com/github/mixinors/astromine/common/block/entity/HoloBridgeProjectorBlockEntity.java +++ b/src/main/java/com/github/mixinors/astromine/common/block/entity/HoloBridgeProjectorBlockEntity.java @@ -156,6 +156,8 @@ public void buildBridge() { public Map getBridgeVoxelShapes() { var facing = getCachedState().get(HORIZONTAL_FACING); + var component = HoloBridgesComponent.get(world); + var bridgePositions = getBridgePositions(); var bridgeVoxelShapes = new HashMap(); @@ -181,7 +183,7 @@ public Map getBridgeVoxelShapes() { for (var x = bridgePos.x - 0.5F; x < bridgePos.x + 0.5F; x += 1.0F / 16.0F) { var bridgeBlockPos = new BlockPos((int) Math.floor(x), (int) Math.floor(y), (int) Math.floor(z)); - var shape = bridgeVoxelShapes.getOrDefault(bridgeBlockPos, VoxelShapes.empty()); + var shape = bridgeVoxelShapes.getOrDefault(bridgeBlockPos, component.getShape(bridgeBlockPos)); var cX = x % (int) x; var cY = bridgePos.y % (int) bridgePos.y;