diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-28 15:40:13 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-28 15:40:13 +0100 |
commit | b2bacf3a25001ed855319d6f2146a3d5e734f43c (patch) | |
tree | 6f349279f2d9166ba7865e8438d6550a791cba08 | |
parent | Villager doesn't check the environment for crops if it doesn't need to. (diff) | |
download | cuberite-b2bacf3a25001ed855319d6f2146a3d5e734f43c.tar cuberite-b2bacf3a25001ed855319d6f2146a3d5e734f43c.tar.gz cuberite-b2bacf3a25001ed855319d6f2146a3d5e734f43c.tar.bz2 cuberite-b2bacf3a25001ed855319d6f2146a3d5e734f43c.tar.lz cuberite-b2bacf3a25001ed855319d6f2146a3d5e734f43c.tar.xz cuberite-b2bacf3a25001ed855319d6f2146a3d5e734f43c.tar.zst cuberite-b2bacf3a25001ed855319d6f2146a3d5e734f43c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Villager.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/Mobs/Villager.cpp b/src/Mobs/Villager.cpp index 4a3cce26e..021d4c672 100644 --- a/src/Mobs/Villager.cpp +++ b/src/Mobs/Villager.cpp @@ -146,11 +146,6 @@ void cVillager::HandleFarmerAttemptSpecialAction() void cVillager::HandleFarmerAction() { - if (!m_World->VillagersShouldHarvestCrops()) - { - return; - } - // 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) { @@ -171,11 +166,6 @@ void cVillager::HandleFarmerAction() void cVillager::HandleFarmerEndCountDown() { - if (!m_World->VillagersShouldHarvestCrops()) - { - return; - } - // Check if there is still farmland at the spot where the crops were. if (m_World->GetBlock(m_CropsPos.x, m_CropsPos.y - 1, m_CropsPos.z) == E_BLOCK_FARMLAND) { |