diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 83881dd00a..7dd2801b33 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -1167,7 +1167,12 @@ public class LExecutor{ @Override public void run(LExecutor exec){ - if(curTime >= value.num()){ + if(value.num() <= 0){ + // Just yield without executing the wait again + exec.yield = true; + // Start the next wait afresh ('value' might have been modified remotely by a different processor) + curTime = 0f; + }else if(curTime >= value.num()){ curTime = 0f; }else{ //skip back to self.