diff options
author | md-5 <md_5@bigpond.com> | 2012-01-13 16:06:55 +1100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-13 07:33:57 +0100 |
commit | d8052a63edb173b6b73d81710292fc00caf7edc8 (patch) | |
tree | f945f469d05cfa828112ba118ae30304550c68b7 /src | |
parent | 8aaa52876326afd40764eb68badeb8301a16cbf8 (diff) | |
download | craftbukkit-d8052a63edb173b6b73d81710292fc00caf7edc8.tar craftbukkit-d8052a63edb173b6b73d81710292fc00caf7edc8.tar.gz craftbukkit-d8052a63edb173b6b73d81710292fc00caf7edc8.tar.lz craftbukkit-d8052a63edb173b6b73d81710292fc00caf7edc8.tar.xz craftbukkit-d8052a63edb173b6b73d81710292fc00caf7edc8.zip |
Fix NPE involving WorldTypes when using CraftServer.createWorld(WorldCreator creator)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 7184022d..d7e19e84 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -513,7 +513,7 @@ public final class CraftServer implements Server { ChunkGenerator generator = creator.generator(); File folder = new File(name); World world = getWorld(name); - WorldType type = WorldType.a(creator.type().getName()); + WorldType type = WorldType.a(creator.type().name()); if (world != null) { return world; |