From 970239f97948c68bb58f799c8d32807332c210a3 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 6 Feb 2011 22:53:48 +0000 Subject: [PATCH] Possibly fixed block/chunk leaking By: Dinnerbone --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 4b42c04fb1..920244d239 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 @@ -123,7 +123,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { if (oldWorld != newWorld) { manager.c.k.a(entity); manager.c.k.b(entity); - manager.d.b(entity); + oldWorld.manager.b(entity); manager.b.remove(entity); oldWorld.e(entity); @@ -136,7 +136,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { newWorld.A.d((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4); newEntity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch()); - manager.d.a(newEntity); + newWorld.manager.a(newEntity); newWorld.a(newEntity); manager.b.add(newEntity); newEntity.l();