Moved some craftbukkit stuff down from WorldServer to World; should fix a few NPEs during generation, and saves on a lot of casting

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot
2011-06-17 03:06:45 +01:00
parent c8b101b9de
commit a944350d16
2 changed files with 34 additions and 38 deletions

View File

@@ -475,7 +475,7 @@ public final class CraftServer implements Server {
return worlds.get(name.toLowerCase());
}
protected void addWorld(World world) {
public void addWorld(World world) {
worlds.put(world.getName().toLowerCase(), world);
}