Fixed .createWorld not respecting container folder 100%. Thanks to plleg for the PR.

By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2012-01-14 17:50:31 +00:00
parent f0065e3eef
commit e703255cb4

View file

@ -514,7 +514,7 @@ public final class CraftServer implements Server {
String name = creator.name(); String name = creator.name();
ChunkGenerator generator = creator.generator(); ChunkGenerator generator = creator.generator();
File folder = new File(name); File folder = new File(getWorldContainer(), name);
World world = getWorld(name); World world = getWorld(name);
WorldType type = WorldType.a(creator.type().getName()); WorldType type = WorldType.a(creator.type().getName());