diff options
author | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-24 18:46:17 -0500 |
---|---|---|
committer | My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> | 2020-12-24 18:46:17 -0500 |
commit | e550f99b8d93ddaec54d1e9273ad5121976d7098 (patch) | |
tree | 32f7f289364ba20037066237dbbbbd79f0a4f2b8 /src/main/java/me | |
parent | 28033cdff035f00ddbef738fb17a517fec8706b7 (diff) | |
download | SkyblockMod-e550f99b8d93ddaec54d1e9273ad5121976d7098.tar.gz SkyblockMod-e550f99b8d93ddaec54d1e9273ad5121976d7098.tar.bz2 SkyblockMod-e550f99b8d93ddaec54d1e9273ad5121976d7098.zip |
Add a keybind for regular ability
Diffstat (limited to 'src/main/java/me')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index 231c125..37dd773 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -96,7 +96,7 @@ public class DankersSkyblockMod { static int tickAmount = 1; static String lastMaddoxCommand = "/cb placeholder"; static double lastMaddoxTime = 0; - static KeyBinding[] keyBindings = new KeyBinding[2]; + static KeyBinding[] keyBindings = new KeyBinding[3]; static boolean usingLabymod = false; public static String guiToOpen = null; static boolean foundLivid = false; @@ -273,7 +273,8 @@ public class DankersSkyblockMod { t6EnchantPattern = Pattern.compile(patternString); keyBindings[0] = new KeyBinding("Open Maddox Menu", Keyboard.KEY_M, "Danker's Skyblock Mod"); - keyBindings[1] = new KeyBinding("Start/Stop Skill Tracker", Keyboard.KEY_NUMPAD5, "Danker's Skyblock Mod"); + keyBindings[1] = new KeyBinding("Regular Ability", Keyboard.KEY_NUMPAD4, "Danker's Skyblock Mod"); + keyBindings[2] = new KeyBinding("Start/Stop Skill Tracker", Keyboard.KEY_NUMPAD5, "Danker's Skyblock Mod"); for (KeyBinding keyBinding : keyBindings) { ClientRegistry.registerKeyBinding(keyBinding); @@ -3193,6 +3194,11 @@ public class DankersSkyblockMod { player.sendChatMessage(lastMaddoxCommand); } if (keyBindings[1].isPressed()) { + if (Utils.inDungeons) { + player.dropOneItem(true); + } + } + if (keyBindings[2].isPressed()) { if (skillStopwatch.isStarted() && skillStopwatch.isSuspended()) { skillStopwatch.resume(); player.addChatMessage(new ChatComponentText(MAIN_COLOUR + "Skill tracker started.")); |