diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2024-05-29 14:53:18 -0400 |
---|---|---|
committer | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2024-07-10 15:42:29 -0400 |
commit | 41b575e41545fbea3b38deb516ba580251a9cd0b (patch) | |
tree | 4b2b879486937ac055857ea0130573d805ddba14 /src/main/java/de/hysky/skyblocker/skyblock/dungeon/device | |
parent | e1b951f6124c28a5cc1ec9d9ca3416f5104b27b3 (diff) | |
download | Skyblocker-41b575e41545fbea3b38deb516ba580251a9cd0b.tar.gz Skyblocker-41b575e41545fbea3b38deb516ba580251a9cd0b.tar.bz2 Skyblocker-41b575e41545fbea3b38deb516ba580251a9cd0b.zip |
Move block bounding box into RenderHelper
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dungeon/device')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/dungeon/device/SimonSays.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/device/SimonSays.java b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/device/SimonSays.java index 341c6025..20bd9ebc 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dungeon/device/SimonSays.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dungeon/device/SimonSays.java @@ -100,7 +100,7 @@ public class SimonSays { //If the button hasn't been clicked yet //Also don't do anything if the button isn't there which means the device is showing the sequence if (!CLICKED_BUTTONS.contains(buttonPos) && state.getBlock().equals(Blocks.STONE_BUTTON)) { - Box outline = state.getOutlineShape(world, buttonPos).asCuboid().getBoundingBox().offset(buttonPos); + Box outline = RenderHelper.getBlockBoundingBox(world, state, buttonPos); float[] colour = buttonsRendered == 0 ? GREEN : YELLOW; RenderHelper.renderFilled(context, Boxes.getMinVec(outline), Boxes.getLengthVec(outline), colour, 0.5f, true); |