mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 07:07:03 +07:00
Allow printflush
ing to null (#7243)
* Allow `printflush`ing to null * Dumb
This commit is contained in:
parent
02c4e905a5
commit
d18579b59a
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user