From 4ada60826160ab69c57fffb5d4ebd2a032297184 Mon Sep 17 00:00:00 2001 From: nea Date: Wed, 27 Jul 2022 19:14:22 +0200 Subject: squashy --- .../io/github/moulberry/notenoughupdates/dungeons/SpiritLeap.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/SpiritLeap.java b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/SpiritLeap.java index a35ab34e..ee4326aa 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/dungeons/SpiritLeap.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/dungeons/SpiritLeap.java @@ -3,6 +3,7 @@ package io.github.moulberry.notenoughupdates.dungeons; import io.github.moulberry.notenoughupdates.NotEnoughUpdates; import io.github.moulberry.notenoughupdates.dungeons.map.DungeonMap; import io.github.moulberry.notenoughupdates.dungeons.map.DungeonMapPlayers; +import io.github.moulberry.notenoughupdates.mixins.AccessorGuiContainer; import io.github.moulberry.notenoughupdates.options.seperateSections.DungeonMapConfig; import io.github.moulberry.notenoughupdates.util.SBInfo; import net.minecraft.client.gui.inventory.GuiChest; @@ -27,8 +28,8 @@ public class SpiritLeap { config, this.dungeonMap.parsedDungeon, savedPlayers != null ? savedPlayers : this.dungeonMap.dungeonMapPlayers, - gui.guiLeft - Math.round(20 * config.dmBorderSize), - gui.guiTop + gui.height / 2 + ((AccessorGuiContainer)gui).getGuiLeft() - Math.round(20 * config.dmBorderSize), + ((AccessorGuiContainer)gui).getGuiTop() + gui.height / 2 ); } -- cgit