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; } }