diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2010-12-30 04:37:32 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2010-12-30 04:37:32 +0000 |
commit | 416964ef5a9241984ffa0201b070f15133750904 (patch) | |
tree | 37ba9a941cef85783e6537d69fd0b1e102302dd9 /src/net/minecraft/server | |
parent | c57530392c8dfa3b5534df9b4b13d1b6cdbb3088 (diff) | |
download | craftbukkit-416964ef5a9241984ffa0201b070f15133750904.tar craftbukkit-416964ef5a9241984ffa0201b070f15133750904.tar.gz craftbukkit-416964ef5a9241984ffa0201b070f15133750904.tar.lz craftbukkit-416964ef5a9241984ffa0201b070f15133750904.tar.xz craftbukkit-416964ef5a9241984ffa0201b070f15133750904.zip |
No lookup for worlds, store on object
Diffstat (limited to 'src/net/minecraft/server')
-rw-r--r-- | src/net/minecraft/server/WorldServer.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/minecraft/server/WorldServer.java b/src/net/minecraft/server/WorldServer.java index d4046c43..aa33b46d 100644 --- a/src/net/minecraft/server/WorldServer.java +++ b/src/net/minecraft/server/WorldServer.java @@ -20,7 +20,7 @@ public class WorldServer extends World { B = false; E = new MCHashTable(); D = minecraftserver; - world = (CraftWorld)D.server.getWorld(this); // CraftBukkit + world = new CraftWorld(this); // CraftBukkit } // CraftBukkit start @@ -37,6 +37,10 @@ public class WorldServer extends World { world.updateBlock(i1, j1, k1); return result; } + + public CraftWorld getWorld() { + return world; + } // CraftBukkit stop public void f() { |