From 68284cc4f88bb3a665148c884038abacce23ae2a Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Thu, 25 Jul 2024 01:19:01 +1000 Subject: Fix recipe and usages keybind double triggering (#1265) --- src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index 43ab7b0d..77cc2cab 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -1168,13 +1168,13 @@ public class NEUOverlay extends Gui { JsonObject item = manager.getItemInformation().get(internalname.get()); if (item != null) { if (keyPressed == manager.keybindViewUsages.getKeyCode()) { - manager.displayGuiItemUsages(internalname.get()); + manager.displayGuiItemUsagesKeybind(internalname.get()); return true; } else if (keyPressed == manager.keybindFavourite.getKeyCode()) { - toggleFavourite(item.get("internalname").getAsString()); + toggleFavourite(internalname.get()); return true; } else if (keyPressed == manager.keybindViewRecipe.getKeyCode()) { - manager.showRecipe(item); + manager.displayGuiItemRecipeKeybind(internalname.get()); return true; } else if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.keybindWaypoint && NotEnoughUpdates.INSTANCE.navigation.isValidWaypoint(item)) { -- cgit