Merge branch 'fix/ui-spam-text' into 'master'

Fix: do not spam the same status contents on stdout

See merge request sheepitrenderfarm/client!334
This commit is contained in:
Sheepit Renderfarm
2024-09-22 21:08:14 +00:00

View File

@@ -117,10 +117,10 @@ public class GuiText implements Gui {
}
}
else {
String statusNew = String.format("%s %s", this.df.format(new Date()), msg_);
String statusNew = msg_;
if (statusOld.equals(statusNew) == false) {
statusOld = statusNew;
System.out.println(statusNew);
System.out.println(String.format("%s %s", this.df.format(new Date()), msg_));
}
}
}