mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-10 15:57:37 +07:00
Display map names with underscores (#4819)
This makes it obvious how to specify map names with spaces. It also allows for copy-pasting form the output of `maps`.
This commit is contained in:
@ -339,7 +339,7 @@ public class ServerControl implements ApplicationListener{
|
|||||||
if(!maps.all().isEmpty()){
|
if(!maps.all().isEmpty()){
|
||||||
info("Maps:");
|
info("Maps:");
|
||||||
for(Map map : maps.all()){
|
for(Map map : maps.all()){
|
||||||
info(" @: &fi@ / @x@", map.name(), map.custom ? "Custom" : "Default", map.width, map.height);
|
info(" @: &fi@ / @x@", map.name().replace(' ', '_'), map.custom ? "Custom" : "Default", map.width, map.height);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
info("No maps found.");
|
info("No maps found.");
|
||||||
|
Reference in New Issue
Block a user