diff options
author | blashyrk <blashyrk92@gmail.com> | 2014-12-15 17:45:42 +0100 |
---|---|---|
committer | blashyrk <blashyrk92@gmail.com> | 2014-12-15 17:45:42 +0100 |
commit | 4e5d2c36e91aeddae1e8a009a49c99031afc88e5 (patch) | |
tree | 088742838eae145696d8d5705cc001444bba784e /src/Entities | |
parent | Fixed mob invisibility (diff) | |
download | cuberite-4e5d2c36e91aeddae1e8a009a49c99031afc88e5.tar cuberite-4e5d2c36e91aeddae1e8a009a49c99031afc88e5.tar.gz cuberite-4e5d2c36e91aeddae1e8a009a49c99031afc88e5.tar.bz2 cuberite-4e5d2c36e91aeddae1e8a009a49c99031afc88e5.tar.lz cuberite-4e5d2c36e91aeddae1e8a009a49c99031afc88e5.tar.xz cuberite-4e5d2c36e91aeddae1e8a009a49c99031afc88e5.tar.zst cuberite-4e5d2c36e91aeddae1e8a009a49c99031afc88e5.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 8d2eb1e5f..abeeef6a5 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1604,6 +1604,10 @@ 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; } |