diff options
author | madmaxoft <github@xoft.cz> | 2013-10-04 08:27:58 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-04 08:27:58 +0200 |
commit | 09718bee7d455360f8a766b539385edb099b7722 (patch) | |
tree | 8dcc4ae420769e08eb82a6f0c4642af75bd546c4 /source/Blocks | |
parent | APIDump: Removed ignored classes logging. (diff) | |
parent | Added comparison for desert biomes. (diff) | |
download | cuberite-09718bee7d455360f8a766b539385edb099b7722.tar cuberite-09718bee7d455360f8a766b539385edb099b7722.tar.gz cuberite-09718bee7d455360f8a766b539385edb099b7722.tar.bz2 cuberite-09718bee7d455360f8a766b539385edb099b7722.tar.lz cuberite-09718bee7d455360f8a766b539385edb099b7722.tar.xz cuberite-09718bee7d455360f8a766b539385edb099b7722.tar.zst cuberite-09718bee7d455360f8a766b539385edb099b7722.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockFarmland.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Blocks/BlockFarmland.h b/source/Blocks/BlockFarmland.h index 6cab1fa38..5aef10556 100644 --- a/source/Blocks/BlockFarmland.h +++ b/source/Blocks/BlockFarmland.h @@ -42,6 +42,10 @@ public: return; } bool Found = false; + + 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(); for (int i = 0; i < NumBlocks; i++) @@ -55,6 +59,11 @@ public: break; } } + } + else + { + Found = true; + } NIBBLETYPE BlockMeta = a_World->GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ); |