diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-10-04 05:39:07 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-10-04 05:39:07 +0200 |
commit | d1448d12a052b1ab9edf22447cff621c7e171593 (patch) | |
tree | cfa8067b4209b6b88c368cd84585c2aec10d2745 | |
parent | Rain now waters farmland. (diff) | |
download | cuberite-d1448d12a052b1ab9edf22447cff621c7e171593.tar cuberite-d1448d12a052b1ab9edf22447cff621c7e171593.tar.gz cuberite-d1448d12a052b1ab9edf22447cff621c7e171593.tar.bz2 cuberite-d1448d12a052b1ab9edf22447cff621c7e171593.tar.lz cuberite-d1448d12a052b1ab9edf22447cff621c7e171593.tar.xz cuberite-d1448d12a052b1ab9edf22447cff621c7e171593.tar.zst cuberite-d1448d12a052b1ab9edf22447cff621c7e171593.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockFarmland.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Blocks/BlockFarmland.h b/source/Blocks/BlockFarmland.h index 16d94d435..5aef10556 100644 --- a/source/Blocks/BlockFarmland.h +++ b/source/Blocks/BlockFarmland.h @@ -43,7 +43,8 @@ public: } bool Found = false; - if (a_World->GetWeather() != eWeather_Rain || a_World->GetBiomeAt(a_BlockX, a_BlockZ) == 1) + int Biome = a_World->GetBiomeAt(a_BlockX, a_BlockZ); + if (a_World->GetWeather() != eWeather_Rain || Biome == biDesert || Biome == biDesertHills) { int NumBlocks = Area.GetBlockCount(); BLOCKTYPE * BlockTypes = Area.GetBlockTypes(); |