From 62585a32b3b1217da44d45c5e0538fce17e95591 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 13 Apr 2025 22:26:00 -0400 Subject: [PATCH] Fixed #10647 --- core/src/mindustry/logic/LExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index d445308e88..5bf6f6cd47 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -1437,7 +1437,7 @@ public class LExecutor{ Team t = team.team(); - if(type.obj() instanceof UnitType type && !type.internal && Units.canCreate(t, type)){ + if(t != null && type.obj() instanceof UnitType type && !type.internal && Units.canCreate(t, type)){ //random offset to prevent stacking var unit = type.spawn(t, World.unconv(x.numf()) + Mathf.range(0.01f), World.unconv(y.numf()) + Mathf.range(0.01f)); spawner.spawnEffect(unit);