Skip to content

Commit

Permalink
Just revert a condition removal
Browse files Browse the repository at this point in the history
  • Loading branch information
ApsZoldat committed Feb 24, 2025
1 parent c9967d5 commit a2b181a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/logic/LExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ public void run(LExecutor exec){

Team t = team.team();

if(type.obj() instanceof UnitType type && t != null && Units.canCreate(t, type)){
if(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, rotation.numf());
Expand Down

0 comments on commit a2b181a

Please sign in to comment.