aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-07-25 01:19:01 +1000
committerGitHub <noreply@github.com>2024-07-24 17:19:01 +0200
commit68284cc4f88bb3a665148c884038abacce23ae2a (patch)
tree394eff309e19b09aeb940b4fc364cd6b1ae5274b /src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
parent3f7296e30202786e6a6a2b4b1960e82ee435e3dc (diff)
downloadnotenoughupdates-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/miscgui/StorageOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
index d56faa63..587d20ef 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/StorageOverlay.java
@@ -20,7 +20,6 @@
package io.github.moulberry.notenoughupdates.miscgui;
import com.google.common.collect.Lists;
-import com.google.gson.JsonObject;
import io.github.moulberry.notenoughupdates.NEUManager;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.core.BackgroundBlur;
@@ -2151,9 +2150,9 @@ public class StorageOverlay extends GuiElement {
String internalName =
manager.createItemResolutionQuery().withItemStack(stack).resolveInternalName();
if (internalName == null) continue;
- JsonObject item = manager.getItemInformation().get(internalName);
- if (keyPressed == manager.keybindViewRecipe.getKeyCode()) manager.showRecipe(item);
- if (keyPressed == manager.keybindViewUsages.getKeyCode()) manager.displayGuiItemUsages(
+ if (keyPressed == manager.keybindViewRecipe.getKeyCode()) manager.displayGuiItemRecipeKeybind(
+ internalName);
+ if (keyPressed == manager.keybindViewUsages.getKeyCode()) manager.displayGuiItemUsagesKeybind(
internalName);
if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.openAHKeybind) {
AhBzKeybind.onKeyPressed(stack);