From 138429d8b84a4ab7219b33bd739e6fa610af2031 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 5 Feb 2011 23:37:33 +0000 Subject: [PATCH] Probably definitely fixed mob leaking By: Dinnerbone --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 01ab8e6701..02beea654c 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -118,13 +118,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player { if (worldChange) { // Unload player from current chunks server.getServer().f.d.b(entity); + + entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle()); } entity.world = ((CraftWorld)location.getWorld()).getHandle(); entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch()); if (worldChange) { // Forceload the chunks around player server.getServer().f.d.a(entity); - entity.c = new ItemInWorldManager(((CraftWorld)location.getWorld()).getHandle()); } } }