diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-02 13:17:20 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-02 13:17:49 +0000 |
commit | 94d4d68211d1d03f190289afb663dce43ec49cc2 (patch) | |
tree | e675befcf01c00b182de39487c7d8df4d67b8d4d | |
parent | c51c895cd88fab3a5fd8cc812abc4d188a94c7b7 (diff) | |
download | craftbukkit-94d4d68211d1d03f190289afb663dce43ec49cc2.tar craftbukkit-94d4d68211d1d03f190289afb663dce43ec49cc2.tar.gz craftbukkit-94d4d68211d1d03f190289afb663dce43ec49cc2.tar.lz craftbukkit-94d4d68211d1d03f190289afb663dce43ec49cc2.tar.xz craftbukkit-94d4d68211d1d03f190289afb663dce43ec49cc2.zip |
Convert contained worlds to Anvil (thanks to Amaranth)
-rw-r--r-- | src/main/java/net/minecraft/server/MinecraftServer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index d7fbe2a1..a0287ac5 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -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 } |