aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-07-27 19:14:22 +0200
committernea <romangraef@gmail.com>2022-07-27 19:14:22 +0200
commit4ada60826160ab69c57fffb5d4ebd2a032297184 (patch)
treeb8ccd03ae4948b761f0e1cf2036cf890d9ef4025
parentf43b4669f47e93b5914a4eff55ae77c5d0560efb (diff)
downloadNotEnoughUpdates-4ada60826160ab69c57fffb5d4ebd2a032297184.tar.gz
NotEnoughUpdates-4ada60826160ab69c57fffb5d4ebd2a032297184.tar.bz2
NotEnoughUpdates-4ada60826160ab69c57fffb5d4ebd2a032297184.zip
squashy
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/dungeons/SpiritLeap.java5
1 files 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
);
}