From abcc14076cc0792644d7e3abf434421369f03a75 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 28 Mar 2021 21:20:13 +0100 Subject: Call ProcessProtocolOut at opportune times --- src/Entities/Player.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Entities') diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 7d8c3a191..59291e40d 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -3075,14 +3075,14 @@ void cPlayer::OnRemoveFromWorld(cWorld & a_World) AwardAchievement(Statistic::AchPortal); } + // Clientside warp start: + m_ClientHandle->SendRespawn(DestinationDimension, false); + // 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(); - - // Clientside warp start: - m_ClientHandle->SendRespawn(DestinationDimension, false); } -- cgit v1.2.3