From 06a2b1211b7241acce8dfbfebc9eed19a987708c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 28 Jun 2021 23:40:28 +0100 Subject: Invalidate m_LastStreamedChunk when player position doesn't match So teleporting to and back doesn't cause chunk sending to stop. * Fixes #4531 --- src/Entities/Player.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/Entities') diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index cb548daba..db64d2e1d 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -3120,9 +3120,6 @@ void cPlayer::OnRemoveFromWorld(cWorld & a_World) // Clear sent chunk lists from the clienthandle: m_ClientHandle->RemoveFromWorld(); - - // The clienthandle caches the coords of the chunk we're standing at. Invalidate this. - m_ClientHandle->InvalidateCachedSentChunk(); } -- cgit v1.2.3