Fix another issue from previous commit

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2023-06-12 20:35:38 +10:00
parent cad3899462
commit dacee77a67

View file

@ -1202,7 +1202,6 @@ public final class CraftServer implements Server {
@Override
public World getWorld(String name) {
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));
}