diff options
author | Mattes D <github@xoft.cz> | 2014-11-16 15:13:39 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-16 15:13:39 +0100 |
commit | a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f (patch) | |
tree | 7d3535001019a6d648e83eb526be30ba538e485a /src/Entities | |
parent | APIDump: Fixed example cCompositeChat URL (diff) | |
parent | Renamed m_UsedViewDistance to m_CurrentViewDistance (diff) | |
download | cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.gz cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.bz2 cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.lz cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.xz cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.tar.zst cuberite-a63eb1ac6e1838a23cd4c97eefd5085c7d97b43f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 5c18d8f96..edcdb4799 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->GetRequestedViewDistance()); + return true; } |