summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-03-28 22:20:13 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-03-28 22:20:13 +0200
commitabcc14076cc0792644d7e3abf434421369f03a75 (patch)
treea7d3cb18181d5a5473b007d192bf3e4989a96289 /src/Entities/Player.cpp
parentSend keep alives slightly less frequently (diff)
downloadcuberite-abcc14076cc0792644d7e3abf434421369f03a75.tar
cuberite-abcc14076cc0792644d7e3abf434421369f03a75.tar.gz
cuberite-abcc14076cc0792644d7e3abf434421369f03a75.tar.bz2
cuberite-abcc14076cc0792644d7e3abf434421369f03a75.tar.lz
cuberite-abcc14076cc0792644d7e3abf434421369f03a75.tar.xz
cuberite-abcc14076cc0792644d7e3abf434421369f03a75.tar.zst
cuberite-abcc14076cc0792644d7e3abf434421369f03a75.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}