Minor editor/world processor fixes and tweaks (#10505)

* Rules search and info button tweaks

* Tweak spawnunit and some searching (again)

* Just revert a condition removal
This commit is contained in:
ApsZoldat
2025-04-04 20:49:35 +03:00
committed by GitHub
parent aa7cdf7642
commit 212be01571
5 changed files with 20 additions and 13 deletions

View File

@@ -1433,7 +1433,7 @@ public class LExecutor{
Team t = team.team();
if(type.obj() instanceof UnitType type && !type.internal && !type.hidden && 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);