From d8052a63edb173b6b73d81710292fc00caf7edc8 Mon Sep 17 00:00:00 2001 From: md-5 Date: Fri, 13 Jan 2012 16:06:55 +1100 Subject: [PATCH] Fix NPE involving WorldTypes when using CraftServer.createWorld(WorldCreator creator) --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 7184022d7e..d7e19e847b 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -513,7 +513,7 @@ public final class CraftServer implements Server { ChunkGenerator generator = creator.generator(); File folder = new File(name); World world = getWorld(name); - WorldType type = WorldType.a(creator.type().getName()); + WorldType type = WorldType.a(creator.type().name()); if (world != null) { return world;