Fix crash when returning to the crafting tree after its bookmark group was removed (#1063)

This commit is contained in:
micvog authored and GitHub committed 2026-10-06 19:46:37 +03:00
1 parent 1b3b495fec
commit 1e2801c891
1 file changed
+7
@@ -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;