summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-15 20:16:25 +0100
committerMattes D <github@xoft.cz>2014-12-15 20:16:25 +0100
commit6de847ef66e862eb2cc3c52c355c4484b8a01bab (patch)
treef8d1e66b38a4359d07a896ee556fcf643b4030c3
parentFixed mob invisibility (diff)
parentAdded braces to 'if' according to the code guidelines (diff)
downloadcuberite-6de847ef66e862eb2cc3c52c355c4484b8a01bab.tar
cuberite-6de847ef66e862eb2cc3c52c355c4484b8a01bab.tar.gz
cuberite-6de847ef66e862eb2cc3c52c355c4484b8a01bab.tar.bz2
cuberite-6de847ef66e862eb2cc3c52c355c4484b8a01bab.tar.lz
cuberite-6de847ef66e862eb2cc3c52c355c4484b8a01bab.tar.xz
cuberite-6de847ef66e862eb2cc3c52c355c4484b8a01bab.tar.zst
cuberite-6de847ef66e862eb2cc3c52c355c4484b8a01bab.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 8d2eb1e5f..15920d6cf 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;
}