mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
Fix another issue from previous commit
By: md_5 <git@md-5.net>
This commit is contained in:
parent
cad3899462
commit
dacee77a67
1 changed files with 0 additions and 1 deletions
|
@ -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…
Reference in a new issue