summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2011-12-19 16:26:11 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2011-12-19 16:26:11 +0000
commitbea7b1373e4e834cc518459db27d1c778a151829 (patch)
tree158b99a25b73cb83a968fa2cf20dc213905e0c27 /src/main
parent3648fb571d4a6b14abc7666e4ea0de41ac300f47 (diff)
downloadcraftbukkit-bea7b1373e4e834cc518459db27d1c778a151829.tar
craftbukkit-bea7b1373e4e834cc518459db27d1c778a151829.tar.gz
craftbukkit-bea7b1373e4e834cc518459db27d1c778a151829.tar.lz
craftbukkit-bea7b1373e4e834cc518459db27d1c778a151829.tar.xz
craftbukkit-bea7b1373e4e834cc518459db27d1c778a151829.zip
Fixed vanilla->bukkit world migration for The End. This fixes BUKKIT-326. Thanks to chewi for the pull request!
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index d840216c..7b9566d5 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -241,7 +241,7 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
if (k == 0) {
world = new WorldServer(this, new ServerNBTManager(server.getWorldContainer(), s, true), s, dimension, settings, org.bukkit.World.Environment.getEnvironment(dimension), gen); // CraftBukkit
} else {
- String dim = "DIM-1";
+ String dim = "DIM" + dimension;
File newWorld = new File(new File(name), dim);
File oldWorld = new File(new File(s), dim);
@@ -257,7 +257,7 @@ public class MinecraftServer implements Runnable, ICommandListener, IMinecraftSe
log.info("---- Migration of old " + worldType + " folder failed ----");
} else if (newWorld.getParentFile().mkdirs()) {
if (oldWorld.renameTo(newWorld)) {
- log.info("Success! To restore the nether in the future, simply move " + newWorld + " to " + oldWorld);
+ log.info("Success! To restore " + worldType + " in the future, simply move " + newWorld + " to " + oldWorld);
log.info("---- Migration of old " + worldType + " folder complete ----");
} else {
log.severe("Could not move folder " + oldWorld + " to " + newWorld + "!");