diff options
author | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-24 18:50:32 +0200 |
---|---|---|
committer | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-24 18:50:32 +0200 |
commit | 146b3d568a6df6f4ac07222bd99a39f11355a0f7 (patch) | |
tree | 57022d7f025327ee2e56c319ffb11ff04f7103ef /source | |
parent | Fixed piston crafting and redstone blocks can be crafted. (Patch by tonibm19) (diff) | |
download | cuberite-146b3d568a6df6f4ac07222bd99a39f11355a0f7.tar cuberite-146b3d568a6df6f4ac07222bd99a39f11355a0f7.tar.gz cuberite-146b3d568a6df6f4ac07222bd99a39f11355a0f7.tar.bz2 cuberite-146b3d568a6df6f4ac07222bd99a39f11355a0f7.tar.lz cuberite-146b3d568a6df6f4ac07222bd99a39f11355a0f7.tar.xz cuberite-146b3d568a6df6f4ac07222bd99a39f11355a0f7.tar.zst cuberite-146b3d568a6df6f4ac07222bd99a39f11355a0f7.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/World.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp index c8a7b9ded..39dd17c17 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -544,6 +544,12 @@ void cWorld::Tick(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) { // Not yet, wait for the weather period to end |