From f4e90bfb6b6b8ee819b62c0b5277e9d889fdf186 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 13 Nov 2022 10:26:40 -0500 Subject: [PATCH] Crash fix --- core/src/mindustry/core/Logic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/core/Logic.java b/core/src/mindustry/core/Logic.java index 94b893d9da..76ea331085 100644 --- a/core/src/mindustry/core/Logic.java +++ b/core/src/mindustry/core/Logic.java @@ -388,7 +388,7 @@ public class Logic implements ApplicationListener{ node.content.unlock(); node = node.parent; - if((node.content instanceof Item item && state.rules.hiddenBuildItems.contains(item))){ + if(node != null && (node.content instanceof Item item && state.rules.hiddenBuildItems.contains(item))){ break; } }