aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/OnlySlayerGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-12-07 19:00:24 -0500
committerGitHub <noreply@github.com>2020-12-07 19:00:24 -0500
commit0bd7c6336f5866ea5513f85a3cedf5c48e375ab2 (patch)
treec28066f2d9f819f57c42d8911f1e0046f48cdf60 /src/main/java/me/Danker/gui/OnlySlayerGui.java
parent886402bdcd8d68e6d1076c86d53baab47070dd63 (diff)
parentc5e8044e39f784798000b64bbece05eae0282d86 (diff)
downloadSkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.tar.gz
SkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.tar.bz2
SkyblockMod-0bd7c6336f5866ea5513f85a3cedf5c48e375ab2.zip
1.8.4v1.8.4
Merge pull request #42 from bowser0000/development
Diffstat (limited to 'src/main/java/me/Danker/gui/OnlySlayerGui.java')
-rw-r--r--src/main/java/me/Danker/gui/OnlySlayerGui.java25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/main/java/me/Danker/gui/OnlySlayerGui.java b/src/main/java/me/Danker/gui/OnlySlayerGui.java
index c96bfd6..89c701d 100644
--- a/src/main/java/me/Danker/gui/OnlySlayerGui.java
+++ b/src/main/java/me/Danker/gui/OnlySlayerGui.java
@@ -1,6 +1,6 @@
package me.Danker.gui;
-import me.Danker.TheMod;
+import me.Danker.DankersSkyblockMod;
import me.Danker.commands.BlockSlayerCommand;
import me.Danker.handlers.ConfigHandler;
import me.Danker.handlers.TextRenderer;
@@ -38,14 +38,19 @@ public class OnlySlayerGui extends GuiScreen {
int width = sr.getScaledWidth();
onlyName = BlockSlayerCommand.onlySlayerName;
- if (BlockSlayerCommand.onlySlayerNumber.equals("I")) {
- onlyNumberInt = 1;
- } else if (BlockSlayerCommand.onlySlayerNumber.equals("II")) {
- onlyNumberInt = 2;
- } else if (BlockSlayerCommand.onlySlayerNumber.equals("III")) {
- onlyNumberInt = 3;
- } else {
- onlyNumberInt = 4;
+ switch (BlockSlayerCommand.onlySlayerNumber) {
+ case "I":
+ onlyNumberInt = 1;
+ break;
+ case "II":
+ onlyNumberInt = 2;
+ break;
+ case "III":
+ onlyNumberInt = 3;
+ break;
+ default:
+ onlyNumberInt = 4;
+ break;
}
goBack = new GuiButton(0, 2, height - 30, 100, 20, "Go Back");
@@ -89,7 +94,7 @@ public class OnlySlayerGui extends GuiScreen {
@Override
public void actionPerformed(GuiButton button) {
if (button == goBack) {
- TheMod.guiToOpen = "dankergui1";
+ DankersSkyblockMod.guiToOpen = "dankergui1";
} else if (button == off) {
BlockSlayerCommand.onlySlayerName = "";
BlockSlayerCommand.onlySlayerNumber = "";