Possibly fixed block/chunk leaking

This commit is contained in:
Dinnerbone
2011-02-06 22:53:48 +00:00
parent 8b14c72a8d
commit 7bdc190637
4 changed files with 24 additions and 14 deletions

View File

@@ -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();