From 4dc2065f54896de666acdc178dc780f86076c8de Mon Sep 17 00:00:00 2001 From: md-5 Date: Sat, 14 Jan 2012 11:14:43 +1100 Subject: [PATCH] Undo commit cc60920 to allow for proper integration with the new Bukkit enum values --- 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 4a3b9d784f..95647ba5c4 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -516,7 +516,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().name()); + WorldType type = WorldType.a(creator.type().getName()); if (world != null) { return world;