From fd05ba2a1212c3870db61fb8362554f12fbf0ce8 Mon Sep 17 00:00:00 2001 From: Waiting Idly <25394029+WaitingIdly@users.noreply.github.com> Date: Sun, 19 Apr 2026 21:19:57 -0700 Subject: [PATCH 1/2] fix copy key failing --- .../java/com/cleanroommc/groovyscript/keybinds/CopyKey.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java b/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java index b1a4c7ff3..33d49eeaf 100644 --- a/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java +++ b/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java @@ -44,7 +44,7 @@ private static void gatherInfo(InfoParserPackage info, EntityPlayer player) { // check sidebars of normal guis info.setStack(getJeiStack()); } - } else if (jei && getJeiRecipesObject() != null) { + } else if (jei && getJeiObject() != null) { // have to check this separately for if IRecipesGui is open, since its GuiScreen not GuiContainer info.setStack(getJeiStack()); } From 07d33cc7e978d3c1fd1af5b0dfa66ea5522768d7 Mon Sep 17 00:00:00 2001 From: Waiting Idly <25394029+WaitingIdly@users.noreply.github.com> Date: Sun, 19 Apr 2026 21:29:20 -0700 Subject: [PATCH 2/2] fix copy key failing --- .../com/cleanroommc/groovyscript/keybinds/CopyKey.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java b/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java index 33d49eeaf..6b2bb4d98 100644 --- a/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java +++ b/src/main/java/com/cleanroommc/groovyscript/keybinds/CopyKey.java @@ -35,17 +35,14 @@ private static void gatherInfo(InfoParserPackage info, EntityPlayer player) { if (mc.inGameHasFocus) { info.copyFromPlayer(player); } else { - var jei = ModSupport.JEI.isLoaded(); if (mc.currentScreen instanceof GuiContainer container) { var slot = container.getSlotUnderMouse(); if (slot != null) { info.setStack(slot.getStack()); - } else if (jei && info.getStack().isEmpty()) { - // check sidebars of normal guis - info.setStack(getJeiStack()); } - } else if (jei && getJeiObject() != null) { - // have to check this separately for if IRecipesGui is open, since its GuiScreen not GuiContainer + } + // if we haven't found anything, check jei + if (ModSupport.JEI.isLoaded() && info.getStack().isEmpty()) { info.setStack(getJeiStack()); } }