Fix another issue from previous commit
This commit is contained in:
parent
3bded4aae8
commit
461cd81328
@ -1202,7 +1202,6 @@ public final class CraftServer implements Server {
|
|||||||
@Override
|
@Override
|
||||||
public World getWorld(String name) {
|
public World getWorld(String name) {
|
||||||
Preconditions.checkArgument(name != null, "name cannot be null");
|
Preconditions.checkArgument(name != null, "name cannot be null");
|
||||||
Preconditions.checkArgument(!name.isBlank(), "name cannot be empty");
|
|
||||||
|
|
||||||
return worlds.get(name.toLowerCase(java.util.Locale.ENGLISH));
|
return worlds.get(name.toLowerCase(java.util.Locale.ENGLISH));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user