summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-10-04 05:35:17 +0200
committerSamuel Barney <samjbarney@gmail.com>2013-10-04 05:35:17 +0200
commit0e1e76fa7717a73268cec2534a6dc5c5ff24dc11 (patch)
treea56420d1c6c2e45ef008e262fa67ec2981df775a /source
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
downloadcuberite-0e1e76fa7717a73268cec2534a6dc5c5ff24dc11.tar
cuberite-0e1e76fa7717a73268cec2534a6dc5c5ff24dc11.tar.gz
cuberite-0e1e76fa7717a73268cec2534a6dc5c5ff24dc11.tar.bz2
cuberite-0e1e76fa7717a73268cec2534a6dc5c5ff24dc11.tar.lz
cuberite-0e1e76fa7717a73268cec2534a6dc5c5ff24dc11.tar.xz
cuberite-0e1e76fa7717a73268cec2534a6dc5c5ff24dc11.tar.zst
cuberite-0e1e76fa7717a73268cec2534a6dc5c5ff24dc11.zip
Diffstat (limited to '')
-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);