mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Use generators from bukkit.yml if none was specified at createWorld
This commit is contained in:
1 parent
dac47b0134
commit
c56d0c0842
1 file changed
+4
@@ -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 + "'");
|
||||
|
||||
Reference in new issue
Block a user