Fix another issue from previous commit

This commit is contained in:
md_5 2023-06-12 20:35:38 +10:00
parent 3bded4aae8
commit 461cd81328
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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));
} }