summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-02-05 21:26:58 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-02-07 01:51:05 +0000
commitac899e51c1ce8511642e3bccf184e1ee401b4149 (patch)
treef019640bb9be00bc3c227928f79079d4d036dbb3
parent550ad6f9d117f24b6d6123f64ad8ab42409ee4f3 (diff)
downloadcraftbukkit-ac899e51c1ce8511642e3bccf184e1ee401b4149.tar
craftbukkit-ac899e51c1ce8511642e3bccf184e1ee401b4149.tar.gz
craftbukkit-ac899e51c1ce8511642e3bccf184e1ee401b4149.tar.lz
craftbukkit-ac899e51c1ce8511642e3bccf184e1ee401b4149.tar.xz
craftbukkit-ac899e51c1ce8511642e3bccf184e1ee401b4149.zip
Possibly fixed world leaks (mobs crossing into other worlds)
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 1465e942..01ab8e67 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -4,6 +4,7 @@ import java.net.InetSocketAddress;
import java.net.SocketAddress;
import net.minecraft.server.EntityHuman;
import net.minecraft.server.EntityPlayer;
+import net.minecraft.server.ItemInWorldManager;
import net.minecraft.server.Packet;
import net.minecraft.server.Packet3Chat;
import net.minecraft.server.Packet6SpawnPosition;
@@ -123,6 +124,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
if (worldChange) {
// Forceload the chunks around player
server.getServer().f.d.a(entity);
+ entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle());
}
}
}