mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-06 02:40:23 -08:00
Fixed arguments resetting red in server errors
This commit is contained in:
parent
b2de197050
commit
f5cb6f2542
1 changed files with 3 additions and 0 deletions
|
|
@ -79,6 +79,9 @@ public class ServerControl implements ApplicationListener{
|
||||||
}
|
}
|
||||||
|
|
||||||
logger = (level1, text) -> {
|
logger = (level1, text) -> {
|
||||||
|
//err has red text instead of reset.
|
||||||
|
if(level1 == LogLevel.err) text = text.replace(reset, lightRed + bold);
|
||||||
|
|
||||||
String result = bold + lightBlack + "[" + dateTime.format(LocalDateTime.now()) + "] " + reset + format(tags[level1.ordinal()] + " " + text + "&fr");
|
String result = bold + lightBlack + "[" + dateTime.format(LocalDateTime.now()) + "] " + reset + format(tags[level1.ordinal()] + " " + text + "&fr");
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue