summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorblashyrk <blashyrk92@gmail.com>2014-12-15 17:45:42 +0100
committerblashyrk <blashyrk92@gmail.com>2014-12-15 17:45:42 +0100
commit4e5d2c36e91aeddae1e8a009a49c99031afc88e5 (patch)
tree088742838eae145696d8d5705cc001444bba784e /src/Entities/Player.cpp
parentFixed mob invisibility (diff)
downloadcuberite-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 '')
-rw-r--r--src/Entities/Player.cpp4
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;
}