diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-07-08 19:01:03 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-07-08 19:01:03 +0100 |
commit | c56d0c0842923ac3b80d627790aa60d99e698dbf (patch) | |
tree | dfebee8d11a1053ea3f43c5bd3b5c096774fe2ca /src/main | |
parent | dac47b01348d0cdef050f02a5a18388954af92ef (diff) | |
download | craftbukkit-c56d0c0842923ac3b80d627790aa60d99e698dbf.tar craftbukkit-c56d0c0842923ac3b80d627790aa60d99e698dbf.tar.gz craftbukkit-c56d0c0842923ac3b80d627790aa60d99e698dbf.tar.lz craftbukkit-c56d0c0842923ac3b80d627790aa60d99e698dbf.tar.xz craftbukkit-c56d0c0842923ac3b80d627790aa60d99e698dbf.zip |
Use generators from bukkit.yml if none was specified at createWorld
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 59e4f85a..00101170 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 + "'"); |