diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-12-17 10:06:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 10:06:19 -0500 |
commit | d5fcd64708e6f41cdc91e9dbc8b8465099a14a76 (patch) | |
tree | 11ee7a0f36185cdc70e77551915e3da7114811bb /src/main/java/me/Danker/gui/DankerGui.java | |
parent | b0e3055fbe29c4af71927a13726ae4984fb2b500 (diff) | |
parent | 638892cc5fe10a379ae5734b8d6e9e2caff1fa00 (diff) | |
download | SkyblockMod-d5fcd64708e6f41cdc91e9dbc8b8465099a14a76.tar.gz SkyblockMod-d5fcd64708e6f41cdc91e9dbc8b8465099a14a76.tar.bz2 SkyblockMod-d5fcd64708e6f41cdc91e9dbc8b8465099a14a76.zip |
Merge pull request #52 from Quantizr/development
Prevent Placing FoT/Spirit Sceptre on grass/dirt
Diffstat (limited to 'src/main/java/me/Danker/gui/DankerGui.java')
-rw-r--r-- | src/main/java/me/Danker/gui/DankerGui.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/gui/DankerGui.java b/src/main/java/me/Danker/gui/DankerGui.java index ff6d5d0..dbb6c11 100644 --- a/src/main/java/me/Danker/gui/DankerGui.java +++ b/src/main/java/me/Danker/gui/DankerGui.java @@ -55,6 +55,7 @@ public class DankerGui extends GuiScreen { private GuiButton lividSolver; private GuiButton stopSalvageStarred; private GuiButton watcherReadyMessage; + private GuiButton flowerWeapons; private GuiButton pickBlock; private GuiButton notifySlayerSlain; @@ -119,6 +120,7 @@ public class DankerGui extends GuiScreen { watcherReadyMessage = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Display Watcher Ready Message: " + Utils.getColouredBoolean(ToggleCommand.watcherReadyToggled)); splitFishing = new GuiButton(0, width / 2 - 100, (int) (height * 0.3), "Split Fishing Display: " + Utils.getColouredBoolean(ToggleCommand.splitFishing)); notifySlayerSlain = new GuiButton(0, width / 2 - 100, (int) (height * 0.4), "Notify when Slayer Slain: " + Utils.getColouredBoolean(ToggleCommand.notifySlayerSlainToggled)); + flowerWeapons = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Prevent Placing FoT/Spirit Sceptre: " + Utils.getColouredBoolean(ToggleCommand.flowerWeaponsToggled)); switch (page) { case 1: @@ -169,6 +171,7 @@ public class DankerGui extends GuiScreen { this.buttonList.add(watcherReadyMessage); this.buttonList.add(splitFishing); this.buttonList.add(notifySlayerSlain); + this.buttonList.add(flowerWeapons); this.buttonList.add(backPage); break; } @@ -325,6 +328,10 @@ public class DankerGui extends GuiScreen { ToggleCommand.swapToPickBlockToggled = !ToggleCommand.swapToPickBlockToggled; ConfigHandler.writeBooleanConfig("toggles", "PickBlock", ToggleCommand.swapToPickBlockToggled); pickBlock.displayString = "Auto-Swap to Pick Block: " + Utils.getColouredBoolean(ToggleCommand.swapToPickBlockToggled); + } else if (button == flowerWeapons) { + ToggleCommand.flowerWeaponsToggled = !ToggleCommand.flowerWeaponsToggled; + ConfigHandler.writeBooleanConfig("toggles", "FlowerWeapons", ToggleCommand.flowerWeaponsToggled); + flowerWeapons.displayString = "Prevent Placing FoT/Spirit Sceptre: " + Utils.getColouredBoolean(ToggleCommand.flowerWeaponsToggled); } } |