Use generators from bukkit.yml if none was specified at createWorld

Dieser Commit ist enthalten in:
Dinnerbone 2011-07-08 19:01:03 +01:00
Ursprung dac47b0134
Commit c56d0c0842

Datei anzeigen

@ -387,6 +387,10 @@ public final class CraftServer implements Server {
throw new IllegalArgumentException("File exists with the name '" + name + "' and isn't a folder"); 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); Convertable converter = new WorldLoaderServer(folder);
if (converter.isConvertable(name)) { if (converter.isConvertable(name)) {
getLogger().info("Converting world '" + name + "'"); getLogger().info("Converting world '" + name + "'");