summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Villager.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-03 19:56:37 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-04 00:58:12 +0200
commita509cf00ef5d76d24549557192b7b43573837475 (patch)
treef8f4d92dc175b33ec2da15930041343fa52741ae /src/Mobs/Villager.cpp
parentMerge pull request #1930 from SafwatHalaby/AI_Jump (diff)
downloadcuberite-a509cf00ef5d76d24549557192b7b43573837475.tar
cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.gz
cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.bz2
cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.lz
cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.xz
cuberite-a509cf00ef5d76d24549557192b7b43573837475.tar.zst
cuberite-a509cf00ef5d76d24549557192b7b43573837475.zip
Diffstat (limited to '')
-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);