Skip to content

Commit 9f3726c

Browse files
Fix button borders being drawn when debug mode is disabled
1 parent d4e0d44 commit 9f3726c

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/main/java/ca/tirelesstraveler/fancywarpmenu/gui/GuiButtonIsland.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ public void drawButton(Minecraft mc, int mouseX, int mouseY) {
8282

8383
zLevel = originalZ;
8484

85-
if (Settings.shouldDrawBorders()) {
86-
drawBorder(Color.WHITE);
87-
}
88-
8985
if (Settings.shouldShowIslandLabels()) {
9086
drawDisplayString(mc, width / 2F, height);
9187
}
88+
89+
if (Settings.isDebugModeEnabled() && Settings.shouldDrawBorders()) {
90+
drawBorder(Color.WHITE);
91+
}
9292
}
9393
}
9494
}

src/main/java/ca/tirelesstraveler/fancywarpmenu/gui/GuiButtonWarp.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ public void drawButton(Minecraft mc, int mouseX, int mouseY) {
8181

8282
zLevel = originalZ;
8383

84-
if (Settings.shouldDrawBorders()) {
85-
drawBorder(Color.WHITE);
86-
}
87-
8884
if (!Settings.shouldHideWarpLabelsUntilIslandHovered() || PARENT.isMouseOver()) {
8985
drawDisplayString(mc, width / 2F, height);
9086
}
87+
88+
if (Settings.isDebugModeEnabled() && Settings.shouldDrawBorders()) {
89+
drawBorder(Color.WHITE);
90+
}
9191
}
9292
}
9393

0 commit comments

Comments
 (0)