mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 18:07:39 +01:00
Convert contained worlds to Anvil (thanks to Amaranth)
This commit is contained in:
parent
c51c895cd8
commit
94d4d68211
@ -184,7 +184,7 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
|
||||
this.t = MathHelper.a(this.t, 64, 256);
|
||||
this.propertyManager.a("max-build-height", Integer.valueOf(this.t));
|
||||
log.info("Preparing level \"" + s + "\"");
|
||||
this.a(new WorldLoaderServer(new File(".")), s, j, worldtype);
|
||||
this.a(new WorldLoaderServer(server.getWorldContainer()), s, j, worldtype); // CraftBukkit - world container
|
||||
|
||||
// CraftBukkit start - display seconds for the completion time
|
||||
long elapsed = System.nanoTime() - i;
|
||||
@ -290,6 +290,11 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
|
||||
}
|
||||
}
|
||||
|
||||
if (convertable.isConvertable(name)) {
|
||||
log.info("Converting map!");
|
||||
convertable.convert(name, new ConvertProgressUpdater(this));
|
||||
}
|
||||
|
||||
world = new SecondaryWorldServer(this, new ServerNBTManager(server.getWorldContainer(), name, true), name, dimension, settings, this.worlds.get(0), org.bukkit.World.Environment.getEnvironment(dimension), gen); // CraftBukkit
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user