aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-07-14 02:20:08 +1000
committerGitHub <noreply@github.com>2024-07-13 18:20:08 +0200
commit1e587bdb6003b0beffa0c554582fbd846c314954 (patch)
treee97c4105a6a027e2e92d12922039c7f320aea8a3 /src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
parent821c177944db38d038f635d2ba499392265a02eb (diff)
downloadnotenoughupdates-1e587bdb6003b0beffa0c554582fbd846c314954.tar.gz
notenoughupdates-1e587bdb6003b0beffa0c554582fbd846c314954.tar.bz2
notenoughupdates-1e587bdb6003b0beffa0c554582fbd846c314954.zip
Add support for ah/bz keybind in custom menus (#1241)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
index dcc6c629..54f46f22 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java
@@ -24,6 +24,7 @@ import io.github.moulberry.notenoughupdates.NEUManager;
import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
import io.github.moulberry.notenoughupdates.TooltipTextScrolling;
import io.github.moulberry.notenoughupdates.core.util.ArrowPagesUtils;
+import io.github.moulberry.notenoughupdates.miscfeatures.AhBzKeybind;
import io.github.moulberry.notenoughupdates.recipes.NeuRecipe;
import io.github.moulberry.notenoughupdates.recipes.RecipeHistory;
import io.github.moulberry.notenoughupdates.recipes.RecipeSlot;
@@ -253,6 +254,8 @@ public class GuiItemRecipe extends GuiScreen {
manager.displayGuiItemRecipe(manager.getInternalNameForItem(itemStack));
} else if (keyPressed == manager.keybindViewUsages.getKeyCode()) {
manager.displayGuiItemUsages(manager.getInternalNameForItem(itemStack));
+ } else if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.openAHKeybind) {
+ AhBzKeybind.onKeyPressed(itemStack);
}
}
}