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

This commit is contained in:
Dinnerbone
2011-06-17 03:06:45 +01:00
parent a818669be0
commit 7e22faf9d6
4 changed files with 61 additions and 64 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);
}