From e550f99b8d93ddaec54d1e9273ad5121976d7098 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Thu, 24 Dec 2020 18:46:17 -0500 Subject: Add a keybind for regular ability --- src/main/java/me/Danker/DankersSkyblockMod.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/main/java/me/Danker/DankersSkyblockMod.java') 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.")); -- cgit