From 548ccabe2f7612c604bdcde780eb694f04f50f7f Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sat, 14 Jan 2012 17:50:31 +0000 Subject: [PATCH] Fixed .createWorld not respecting container folder 100%. Thanks to plleg for the PR. --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 95647ba5c4..f4bf8afd55 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -514,7 +514,7 @@ public final class CraftServer implements Server { String name = creator.name(); ChunkGenerator generator = creator.generator(); - File folder = new File(name); + File folder = new File(getWorldContainer(), name); World world = getWorld(name); WorldType type = WorldType.a(creator.type().getName());