From c56d0c0842923ac3b80d627790aa60d99e698dbf Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Fri, 8 Jul 2011 19:01:03 +0100 Subject: [PATCH] Use generators from bukkit.yml if none was specified at createWorld --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 59e4f85a1e..0010117097 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -387,6 +387,10 @@ public final class CraftServer implements Server { throw new IllegalArgumentException("File exists with the name '" + name + "' and isn't a folder"); } + if (generator == null) { + generator = getGenerator(name); + } + Convertable converter = new WorldLoaderServer(folder); if (converter.isConvertable(name)) { getLogger().info("Converting world '" + name + "'");