Updated cPlayer::DoMoveToWorld to send target world's weather info to Player
This commit is contained in:
parent
b3e5872c22
commit
4e5d2c36e9
@ -1604,6 +1604,10 @@ bool cPlayer::DoMoveToWorld(cWorld * a_World, bool a_ShouldSendRespawn)
|
|||||||
// Update the view distance.
|
// Update the view distance.
|
||||||
m_ClientHandle->SetViewDistance(m_ClientHandle->GetRequestedViewDistance());
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user