From 1e2801c8916f080713d71c56c5d81bbda15d3ca8 Mon Sep 17 00:00:00 2001 From: micvog <41322907+micvog@users.noreply.github.com> Date: Tue, 6 Oct 2026 18:46:37 +0200 Subject: [PATCH] Fix crash when returning to the crafting tree after its bookmark group was removed (#1063) --- .../codechicken/nei/bookmark/tree/GuiCraftingTree.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/codechicken/nei/bookmark/tree/GuiCraftingTree.java b/src/main/java/codechicken/nei/bookmark/tree/GuiCraftingTree.java index 01d05aea..229d1e37 100644 --- a/src/main/java/codechicken/nei/bookmark/tree/GuiCraftingTree.java +++ b/src/main/java/codechicken/nei/bookmark/tree/GuiCraftingTree.java @@ -190,6 +190,13 @@ public class GuiCraftingTree extends GuiContainer implements INEIGuiHandler, IGu @Override public void initGui() { + + // the group can be removed from the bookmark panel while a recipe screen opened from this tree is shown + if (this.grid.getGroup(this.groupId) == null) { + this.mc.displayGuiScreen(this.prevGui); + return; + } + this.xSize = this.width; this.ySize = this.height;