summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockFarmland.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Blocks/BlockFarmland.h')
-rw-r--r--source/Blocks/BlockFarmland.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/Blocks/BlockFarmland.h b/source/Blocks/BlockFarmland.h
index 6cab1fa38..16d94d435 100644
--- a/source/Blocks/BlockFarmland.h
+++ b/source/Blocks/BlockFarmland.h
@@ -42,6 +42,9 @@ public:
return;
}
bool Found = false;
+
+ if (a_World->GetWeather() != eWeather_Rain || a_World->GetBiomeAt(a_BlockX, a_BlockZ) == 1)
+ {
int NumBlocks = Area.GetBlockCount();
BLOCKTYPE * BlockTypes = Area.GetBlockTypes();
for (int i = 0; i < NumBlocks; i++)
@@ -55,6 +58,11 @@ public:
break;
}
}
+ }
+ else
+ {
+ Found = true;
+ }
NIBBLETYPE BlockMeta = a_World->GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ);