mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-13 12:16:53 +07:00
Prevent colored map author name from tainting gameover (#1922)
This commit is contained in:
parent
fa62336096
commit
0589290380
@ -140,7 +140,7 @@ public class ServerControl implements ApplicationListener{
|
||||
Call.onInfoMessage((state.rules.pvp
|
||||
? "[YELLOW]The " + event.winner.name + " team is victorious![]" : "[SCARLET]Game over![]")
|
||||
+ "\nNext selected map:[accent] " + map.name() + "[]"
|
||||
+ (map.tags.containsKey("author") && !map.tags.get("author").trim().isEmpty() ? " by[accent] " + map.author() + "[]" : "") + "." +
|
||||
+ (map.tags.containsKey("author") && !map.tags.get("author").trim().isEmpty() ? " by[accent] " + map.author() + "[white]" : "") + "." +
|
||||
"\nNew game begins in " + roundExtraTime + "[] seconds.");
|
||||
|
||||
info("Selected next map to be {0}.", map.name());
|
||||
|
Loading…
Reference in New Issue
Block a user