Allow unit build with world processors

This commit is contained in:
Anuken 2022-04-03 22:46:44 -04:00
parent 91f19a5c81
commit af769065e6

View File

@ -458,7 +458,7 @@ public class LExecutor{
}
}
case build -> {
if(state.rules.logicUnitBuild && unit.canBuild() && exec.obj(p3) instanceof Block block && block.canBeBuilt()){
if((state.rules.logicUnitBuild || exec.privileged) && unit.canBuild() && exec.obj(p3) instanceof Block block && block.canBeBuilt()){
int x = World.toTile(x1 - block.offset/tilesize), y = World.toTile(y1 - block.offset/tilesize);
int rot = Mathf.mod(exec.numi(p4), 4);