summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityPlayer.java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-05 18:15:04 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-07 01:44:43 +0000
commit2be5181b0c721baf520a372350693377c261dd37 (patch)
tree790918614919ce0dd2801ceffadc43ebf9c7a141 /src/main/java/net/minecraft/server/EntityPlayer.java
parent9e7991ab528cfc195200e342cd022ab3f63de3f6 (diff)
downloadcraftbukkit-2be5181b0c721baf520a372350693377c261dd37.tar
craftbukkit-2be5181b0c721baf520a372350693377c261dd37.tar.gz
craftbukkit-2be5181b0c721baf520a372350693377c261dd37.tar.lz
craftbukkit-2be5181b0c721baf520a372350693377c261dd37.tar.xz
craftbukkit-2be5181b0c721baf520a372350693377c261dd37.zip
Added internal MC support for multiple worlds
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityPlayer.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityPlayer.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
index ae2d84f6..d347de4b 100644
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
@@ -158,8 +158,11 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
if (flag) {
this.f.remove(chunkcoordintpair);
- this.a.b((Packet) (new Packet51MapChunk(chunkcoordintpair.a * 16, 0, chunkcoordintpair.b * 16, 16, 128, 16, this.b.e)));
- List list = this.b.e.d(chunkcoordintpair.a * 16, 0, chunkcoordintpair.b * 16, chunkcoordintpair.a * 16 + 16, 128, chunkcoordintpair.b * 16 + 16);
+
+ // Craftbukkit start
+ this.a.b((Packet) (new Packet51MapChunk(chunkcoordintpair.a * 16, 0, chunkcoordintpair.b * 16, 16, 128, 16, this.world)));
+ List list = ((WorldServer)world).d(chunkcoordintpair.a * 16, 0, chunkcoordintpair.b * 16, chunkcoordintpair.a * 16 + 16, 128, chunkcoordintpair.b * 16 + 16);
+ // Craftbukkit end
for (int j = 0; j < list.size(); ++j) {
this.a((TileEntity) list.get(j));