Misc minor bugfixes

This commit is contained in:
Anuken
2022-07-08 16:38:25 -04:00
parent 6f6bf0cf77
commit 0c09c10741
4 changed files with 11 additions and 5 deletions

View File

@@ -1331,8 +1331,7 @@ public class LExecutor{
if(exec.obj(type) instanceof UnitType type && !type.hidden && t != null && Units.canCreate(t, type)){
//random offset to prevent stacking
var unit = type.spawn(t, World.unconv(exec.numf(x)) + Mathf.range(0.01f), World.unconv(exec.numf(y)) + Mathf.range(0.01f));
unit.rotation = exec.numf(rotation);
spawner.spawnEffect(unit);
spawner.spawnEffect(unit, exec.numf(rotation));
exec.setobj(result, unit);
}
}