diff options
author | Fabian Faßbender <fabian.fassbender42@googlemail.com> | 2014-11-29 20:33:33 +0100 |
---|---|---|
committer | Fabian Faßbender <fabian.fassbender42@googlemail.com> | 2014-11-29 20:33:33 +0100 |
commit | b08f233fe125d4e0ee4cff90b7b802e6fa1e90ff (patch) | |
tree | 77c4f5591878dad72cb620bf05df70d32a04a1e0 /src/main/java | |
parent | a497e455039afee89f6769c64e5f80b0ff212c92 (diff) | |
download | craftbukkit-b08f233fe125d4e0ee4cff90b7b802e6fa1e90ff.tar craftbukkit-b08f233fe125d4e0ee4cff90b7b802e6fa1e90ff.tar.gz craftbukkit-b08f233fe125d4e0ee4cff90b7b802e6fa1e90ff.tar.lz craftbukkit-b08f233fe125d4e0ee4cff90b7b802e6fa1e90ff.tar.xz craftbukkit-b08f233fe125d4e0ee4cff90b7b802e6fa1e90ff.zip |
Rewrite the level.dat properly. This fixes SPIGOT-46
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index f2bbe1b7..fa1fe206 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -849,6 +849,7 @@ public final class CraftServer implements Server { if (worlddata == null) { worlddata = new WorldData(new WorldSettings(creator.seed(), EnumGamemode.getById(getDefaultGameMode().getValue()), generateStructures, hardcore, type), name); } + worlddata.checkName(name); // CraftBukkit - Migration did not rewrite the level.dat; This forces 1.8 to take the last loaded world as respawn (in this case the end) WorldServer internal = (WorldServer) new WorldServer(console, sdm, worlddata, dimension, console.methodProfiler, creator.environment(), generator).b(); if (!(worlds.containsKey(name.toLowerCase()))) { |