diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-25 03:47:12 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-25 03:47:12 +0000 |
commit | ef75a286acd98ed5c8d0b4689842f6eef8042848 (patch) | |
tree | e1916f56e86200aab8623e096deb63b0ba6b9aae /src | |
parent | 20a0b0a9be2e2283750c0ba9e10aba326f2ae63e (diff) | |
download | craftbukkit-ef75a286acd98ed5c8d0b4689842f6eef8042848.tar craftbukkit-ef75a286acd98ed5c8d0b4689842f6eef8042848.tar.gz craftbukkit-ef75a286acd98ed5c8d0b4689842f6eef8042848.tar.lz craftbukkit-ef75a286acd98ed5c8d0b4689842f6eef8042848.tar.xz craftbukkit-ef75a286acd98ed5c8d0b4689842f6eef8042848.zip |
Implemented world.getWorldFolder
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/PlayerNBTManager.java | 2 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/PlayerNBTManager.java b/src/main/java/net/minecraft/server/PlayerNBTManager.java index 284ff886..04d9cea3 100644 --- a/src/main/java/net/minecraft/server/PlayerNBTManager.java +++ b/src/main/java/net/minecraft/server/PlayerNBTManager.java @@ -53,7 +53,7 @@ public class PlayerNBTManager implements PlayerFileData, IDataManager { } } - protected File a() { + public File a() { // CraftBukkit - public to private return this.b; } diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 23469313..86e0e25c 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -1,6 +1,7 @@ package org.bukkit.craftbukkit; import com.google.common.collect.MapMaker; +import java.io.File; import org.bukkit.craftbukkit.entity.*; import org.bukkit.entity.*; import org.bukkit.entity.Entity; @@ -893,4 +894,8 @@ public class CraftWorld implements World { return this.getUID() == other.getUID(); } + + public File getWorldFolder() { + return ((PlayerNBTManager)world.q()).a(); + } } |