diff options
author | Masy98 <masy@antheruscraft.de> | 2014-12-18 19:32:48 +0100 |
---|---|---|
committer | Masy98 <masy@antheruscraft.de> | 2014-12-18 19:32:48 +0100 |
commit | 706b9181e612410ea99c9d725d3cd448dafb152c (patch) | |
tree | 0d1281525b92566409a3c4a6d0bf8a0e9d5f7dc8 /src/Entities | |
parent | Added Entity Guardian (diff) | |
parent | Merge pull request #1679 from SphinxC0re/master (diff) | |
download | cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.gz cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.bz2 cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.lz cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.xz cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.zst cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.zip |
Diffstat (limited to 'src/Entities')
-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 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; } |