From af769065e6407b7e5122de0623c8a457821e19d3 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 3 Apr 2022 22:46:44 -0400 Subject: [PATCH] Allow unit build with world processors --- core/src/mindustry/logic/LExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 76f4b98ff9..588049bac1 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -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);