Villager: NoCountDown and Action function don't check VillagersShouldHarvestCrops anymore because it shoudn't even be activated anywhere.
This commit is contained in:
parent
807a4dba98
commit
b2bacf3a25
@ -146,11 +146,6 @@ void cVillager::HandleFarmerAttemptSpecialAction()
|
|||||||
|
|
||||||
void cVillager::HandleFarmerAction()
|
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.
|
// 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_bMovingToDestination && (GetPosition() - m_CropsPos).Length() < 2)
|
||||||
{
|
{
|
||||||
@ -171,11 +166,6 @@ void cVillager::HandleFarmerAction()
|
|||||||
|
|
||||||
void cVillager::HandleFarmerEndCountDown()
|
void cVillager::HandleFarmerEndCountDown()
|
||||||
{
|
{
|
||||||
if (!m_World->VillagersShouldHarvestCrops())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if there is still farmland at the spot where the crops were.
|
// 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)
|
if (m_World->GetBlock(m_CropsPos.x, m_CropsPos.y - 1, m_CropsPos.z) == E_BLOCK_FARMLAND)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user