diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index 10094be0da..aa6daf4b5a 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -1020,14 +1020,15 @@ public class LExecutor{ @Override public void run(LExecutor exec){ - + if(exec.building(target) instanceof MessageBuild d && (d.team == exec.team || exec.privileged)){ d.message.setLength(0); d.message.append(exec.textBuffer, 0, Math.min(exec.textBuffer.length(), maxTextBuffer)); - exec.textBuffer.setLength(0); } + exec.textBuffer.setLength(0); + } }