summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-14 22:53:12 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-14 22:53:12 +0100
commit83d3f3347b5c812b06be87804b7582a92d0294d3 (patch)
treea3e50b52ed513401b11a231c62a3a24eaf698756 /src/Entities
parentMerge branch 'master' into ViewDistance (diff)
downloadcuberite-83d3f3347b5c812b06be87804b7582a92d0294d3.tar
cuberite-83d3f3347b5c812b06be87804b7582a92d0294d3.tar.gz
cuberite-83d3f3347b5c812b06be87804b7582a92d0294d3.tar.bz2
cuberite-83d3f3347b5c812b06be87804b7582a92d0294d3.tar.lz
cuberite-83d3f3347b5c812b06be87804b7582a92d0294d3.tar.xz
cuberite-83d3f3347b5c812b06be87804b7582a92d0294d3.tar.zst
cuberite-83d3f3347b5c812b06be87804b7582a92d0294d3.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 5c18d8f96..1fe14ff65 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1602,6 +1602,9 @@ bool cPlayer::DoMoveToWorld(cWorld * a_World, bool a_ShouldSendRespawn)
a_World->AddPlayer(this);
SetWorld(a_World); // Chunks may be streamed before cWorld::AddPlayer() sets the world to the new value
+ // Update the view distance.
+ m_ClientHandle->SetViewDistance(m_ClientHandle->GetSettedViewDistance());
+
return true;
}