Use generators from bukkit.yml if none was specified at createWorld
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
e8b5c3e8a2
commit
e29451bc4e
1 changed files with 4 additions and 0 deletions
|
@ -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 + "'");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue