summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Villager.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2015-05-04 20:31:53 +0200
committerAlexander Harkness <me@bearbin.net>2015-05-04 20:31:53 +0200
commitadba982257c24557c952c07e9b142c32233d055c (patch)
treef9a5fa0402c1376f69a1c9c342221cc39aa7f780 /src/Mobs/Villager.cpp
parentUpgraded ubuntu version. (diff)
parentMerge remote-tracking branch 'origin/master' into fixes (diff)
downloadcuberite-adba982257c24557c952c07e9b142c32233d055c.tar
cuberite-adba982257c24557c952c07e9b142c32233d055c.tar.gz
cuberite-adba982257c24557c952c07e9b142c32233d055c.tar.bz2
cuberite-adba982257c24557c952c07e9b142c32233d055c.tar.lz
cuberite-adba982257c24557c952c07e9b142c32233d055c.tar.xz
cuberite-adba982257c24557c952c07e9b142c32233d055c.tar.zst
cuberite-adba982257c24557c952c07e9b142c32233d055c.zip
Diffstat (limited to 'src/Mobs/Villager.cpp')
-rw-r--r--src/Mobs/Villager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Villager.cpp b/src/Mobs/Villager.cpp
index 6f647ac18..e4953d546 100644
--- a/src/Mobs/Villager.cpp
+++ b/src/Mobs/Villager.cpp
@@ -156,7 +156,7 @@ void cVillager::HandleFarmerPrepareFarmCrops()
void cVillager::HandleFarmerTryHarvestCrops()
{
// Harvest the crops if the villager isn't moving and if the crops are closer then 2 blocks.
- if (!m_bMovingToDestination && (GetPosition() - m_CropsPos).Length() < 2)
+ if (!m_IsFollowingPath && (GetPosition() - m_CropsPos).Length() < 2)
{
// Check if the blocks didn't change while the villager was walking to the coordinates.
BLOCKTYPE CropBlock = m_World->GetBlock(m_CropsPos.x, m_CropsPos.y, m_CropsPos.z);