mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 17:28:14 +07:00
Fixed server map find bug
This commit is contained in:
parent
771c5fbe3d
commit
83a5a82e18
@ -198,7 +198,7 @@ public class ServerControl implements ApplicationListener{
|
||||
|
||||
if(lastTask != null) lastTask.cancel();
|
||||
|
||||
Map result = world.maps.all().find(map -> map.name().equalsIgnoreCase(arg[0].replace('_', ' ')));
|
||||
Map result = world.maps.all().find(map -> map.name().equalsIgnoreCase(arg[0].replace('_', ' ')) || map.name().equalsIgnoreCase(arg[0]));
|
||||
|
||||
if(result == null){
|
||||
err("No map with name &y'{0}'&lr found.", arg[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user