summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Mobs/Villager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Mobs/Villager.cpp b/src/Mobs/Villager.cpp
index 74a2a6d99..4a3cce26e 100644
--- a/src/Mobs/Villager.cpp
+++ b/src/Mobs/Villager.cpp
@@ -97,6 +97,11 @@ void cVillager::Tick(float a_Dt, cChunk & a_Chunk)
// Farmer functions.
void cVillager::HandleFarmerAttemptSpecialAction()
{
+ if (!m_World->VillagersShouldHarvestCrops())
+ {
+ return;
+ }
+
cBlockArea Surrounding;
/// Read a 11x7x11 area.
Surrounding.Read(