1
0

The weather doesn't change if the dimension is not Overworld.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1624 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
nielsbreu@gmail.com 2013-06-24 16:50:32 +00:00
parent 4212c4ba12
commit 146b3d568a

View File

@ -544,6 +544,12 @@ void cWorld::Tick(float a_Dt)
void cWorld::TickWeather(float a_Dt) void cWorld::TickWeather(float a_Dt)
{ {
// There are no weather changes anywhere but in the Overworld:
if (GetDimension() != dimOverworld)
{
return;
}
if (m_WeatherInterval > 0) if (m_WeatherInterval > 0)
{ {
// Not yet, wait for the weather period to end // Not yet, wait for the weather period to end