aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DisplayGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-02-27 19:06:17 -0500
committerbowser0000 <bowser0000@gmail.com>2021-02-27 19:06:17 -0500
commitabeb54dbea7e4219f4a277211cd33df3aff39dd9 (patch)
tree3b12398ac2f863bc3f5426ef6266999a598ce86f /src/main/java/me/Danker/gui/DisplayGui.java
parentad53066846fb168255499a332a1ad4bca39f5935 (diff)
downloadSkyblockMod-abeb54dbea7e4219f4a277211cd33df3aff39dd9.tar.gz
SkyblockMod-abeb54dbea7e4219f4a277211cd33df3aff39dd9.tar.bz2
SkyblockMod-abeb54dbea7e4219f4a277211cd33df3aff39dd9.zip
Make config handling easier
And move display variables to LootDisplay.java
Diffstat (limited to 'src/main/java/me/Danker/gui/DisplayGui.java')
-rw-r--r--src/main/java/me/Danker/gui/DisplayGui.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/gui/DisplayGui.java b/src/main/java/me/Danker/gui/DisplayGui.java
index 2f704b3..4e5831d 100644
--- a/src/main/java/me/Danker/gui/DisplayGui.java
+++ b/src/main/java/me/Danker/gui/DisplayGui.java
@@ -2,6 +2,7 @@ package me.Danker.gui;
import me.Danker.DankersSkyblockMod;
import me.Danker.commands.DisplayCommand;
+import me.Danker.features.loot.LootDisplay;
import me.Danker.handlers.ConfigHandler;
import me.Danker.handlers.TextRenderer;
import me.Danker.utils.Utils;
@@ -94,10 +95,10 @@ public class DisplayGui extends GuiScreen {
Minecraft mc = Minecraft.getMinecraft();
String displayText;
- if (DisplayCommand.auto) {
+ if (LootDisplay.auto) {
displayText = "Current Display: auto";
} else {
- displayText = "Current Display: " + DisplayCommand.display;
+ displayText = "Current Display: " + LootDisplay.display;
}
int displayWidth = mc.fontRendererObj.getStringWidth(displayText);
new TextRenderer(mc, displayText, width / 2 - displayWidth / 2, 10, 1D);
@@ -125,7 +126,7 @@ public class DisplayGui extends GuiScreen {
} else if (button == wolf) {
setDisplay("wolf", false);
} else if (button == auto) {
- DisplayCommand.auto = true;
+ LootDisplay.auto = true;
ConfigHandler.writeBooleanConfig("misc", "autoDisplay", true);
} else if (button == fishing) {
setDisplay("fishing", false);
@@ -156,8 +157,8 @@ public class DisplayGui extends GuiScreen {
public void setDisplay(String display, boolean forceNoSession) {
if (!forceNoSession && addSession) display += "_session";
- DisplayCommand.auto = false;
- DisplayCommand.display = display;
+ LootDisplay.auto = false;
+ LootDisplay.display = display;
ConfigHandler.writeBooleanConfig("misc", "autoDisplay", false);
ConfigHandler.writeStringConfig("misc", "display", display);
}