Fix autocraft crash when started from the recipe screen (#1108) (#1150)

This commit is contained in:
slprime authored and GitHub committed 2026-11-21 19:57:06 +02:00
1 parent 1bb550305c
commit f84b24724a
2 files changed
+6

No files matched your search

@@ -149,6 +149,7 @@ public class RecipeHandlerRef {
if (overlayHandler != null && overlayHandler.canCraft(firstGui, this.handler, this.recipeIndex)) {
if (!firstGui.equals(firstGui.mc.currentScreen)) {
if (!firstGui.mc.func_152345_ab()) return false;
firstGui.mc.displayGuiScreen(firstGui);
}