diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-13 06:33:59 +0100 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-13 06:33:59 +0100 |
commit | 86b51083a174713eeaa4a9e602bb71acb51d55f5 (patch) | |
tree | c73d4b10ce1e4159a29b386e2d933ccaaa3c5d23 /src/Mobs/Villager.cpp | |
parent | Merge pull request #2739 from Gargaj/patch-6 (diff) | |
parent | Decoupled cMonster and path recalc logic, re-implemented recalc (diff) | |
download | cuberite-86b51083a174713eeaa4a9e602bb71acb51d55f5.tar cuberite-86b51083a174713eeaa4a9e602bb71acb51d55f5.tar.gz cuberite-86b51083a174713eeaa4a9e602bb71acb51d55f5.tar.bz2 cuberite-86b51083a174713eeaa4a9e602bb71acb51d55f5.tar.lz cuberite-86b51083a174713eeaa4a9e602bb71acb51d55f5.tar.xz cuberite-86b51083a174713eeaa4a9e602bb71acb51d55f5.tar.zst cuberite-86b51083a174713eeaa4a9e602bb71acb51d55f5.zip |
Diffstat (limited to 'src/Mobs/Villager.cpp')
-rw-r--r-- | src/Mobs/Villager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Villager.cpp b/src/Mobs/Villager.cpp index 2dc753f52..41807e335 100644 --- a/src/Mobs/Villager.cpp +++ b/src/Mobs/Villager.cpp @@ -158,7 +158,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_IsFollowingPath && (GetPosition() - m_CropsPos).Length() < 2) + if (!m_PathfinderActivated && (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); |