diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-12-17 17:33:30 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-12-17 17:33:30 +0100 |
commit | 6ee7fd3c6792235c873e24b16331e3a8278021cc (patch) | |
tree | 707fb63ebda192bad5603c5c280d99746b510cc4 /src/Entities | |
parent | Implemented vanilla-like shift click. (diff) | |
parent | Merge pull request #1674 from gushromp/master (diff) | |
download | cuberite-6ee7fd3c6792235c873e24b16331e3a8278021cc.tar cuberite-6ee7fd3c6792235c873e24b16331e3a8278021cc.tar.gz cuberite-6ee7fd3c6792235c873e24b16331e3a8278021cc.tar.bz2 cuberite-6ee7fd3c6792235c873e24b16331e3a8278021cc.tar.lz cuberite-6ee7fd3c6792235c873e24b16331e3a8278021cc.tar.xz cuberite-6ee7fd3c6792235c873e24b16331e3a8278021cc.tar.zst cuberite-6ee7fd3c6792235c873e24b16331e3a8278021cc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 17f0d4074..716e20663 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1604,6 +1604,12 @@ bool cPlayer::DoMoveToWorld(cWorld * a_World, bool a_ShouldSendRespawn) // Update the view distance. m_ClientHandle->SetViewDistance(m_ClientHandle->GetRequestedViewDistance()); + // Send current weather of target world to player + if (a_World->GetDimension() == dimOverworld) + { + m_ClientHandle->SendWeather(a_World->GetWeather()); + } + return true; } |