Skip to content

Commit a2b181a

Browse files
committed
Just revert a condition removal
1 parent c9967d5 commit a2b181a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/mindustry/logic/LExecutor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ public void run(LExecutor exec){
14311431

14321432
Team t = team.team();
14331433

1434-
if(type.obj() instanceof UnitType type && t != null && Units.canCreate(t, type)){
1434+
if(type.obj() instanceof UnitType type && !type.internal && Units.canCreate(t, type)){
14351435
//random offset to prevent stacking
14361436
var unit = type.spawn(t, World.unconv(x.numf()) + Mathf.range(0.01f), World.unconv(y.numf()) + Mathf.range(0.01f));
14371437
spawner.spawnEffect(unit, rotation.numf());

0 commit comments

Comments
 (0)