Allow printflushing to null (#7243)

* Allow `printflush`ing to null

* Dumb
This commit is contained in:
BalaM314 2022-07-28 19:11:31 +05:30 committed by GitHub
parent 02c4e905a5
commit d18579b59a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}