diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-07-25 01:19:01 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-24 17:19:01 +0200 |
| commit | 68284cc4f88bb3a665148c884038abacce23ae2a (patch) | |
| tree | 394eff309e19b09aeb940b4fc364cd6b1ae5274b /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | |
| parent | 3f7296e30202786e6a6a2b4b1960e82ee435e3dc (diff) | |
| download | notenoughupdates-68284cc4f88bb3a665148c884038abacce23ae2a.tar.gz notenoughupdates-68284cc4f88bb3a665148c884038abacce23ae2a.tar.bz2 notenoughupdates-68284cc4f88bb3a665148c884038abacce23ae2a.zip | |
Fix recipe and usages keybind double triggering (#1265)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 6 |
1 files changed, 3 insertions, 3 deletions
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)) { |
