From da67b3d29ca72a477033998f306e9418cfe377ae Mon Sep 17 00:00:00 2001 From: Ross Allan Date: Mon, 8 Jul 2013 18:25:06 +0100 Subject: [PATCH] Fix #860 Signed-off-by: Ross Allan --- .../nallar/patched/world/tracking/PatchPlayerInstance.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/nallar/patched/world/tracking/PatchPlayerInstance.java b/src/common/nallar/patched/world/tracking/PatchPlayerInstance.java index 036cf329..5177aaa6 100644 --- a/src/common/nallar/patched/world/tracking/PatchPlayerInstance.java +++ b/src/common/nallar/patched/world/tracking/PatchPlayerInstance.java @@ -198,7 +198,7 @@ private boolean noUpdateRequired() { return true; } if (chunk.partiallyUnloaded) { - Log.severe("Chunk for " + this + " has been unloaded without removing the PlayerInstance"); + this.loaded = false; this.chunk = null; myManager.getWorldServer().theChunkProviderServer.getChunkAt(chunkLocation.chunkXPos, chunkLocation.chunkZPos, new LoadRunnable(this)); return true; @@ -222,8 +222,8 @@ public boolean shouldPostPone(boolean squash, int currentTick) { @Override public void sendChunkUpdate() { - watched = false; if (noUpdateRequired()) { + clearTileCount(); return; } sentUpdates++; @@ -258,8 +258,7 @@ public void sendChunkUpdate() { } } - this.numberOfTilesToUpdate = 0; - this.field_73260_f = 0; + clearTileCount(); } } }