Villager doesn't check the environment for crops if it doesn't need to.
parent
babc80ed77
commit
807a4dba98
|
@ -97,6 +97,11 @@ void cVillager::Tick(float a_Dt, cChunk & a_Chunk)
|
||||||
// Farmer functions.
|
// Farmer functions.
|
||||||
void cVillager::HandleFarmerAttemptSpecialAction()
|
void cVillager::HandleFarmerAttemptSpecialAction()
|
||||||
{
|
{
|
||||||
|
if (!m_World->VillagersShouldHarvestCrops())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cBlockArea Surrounding;
|
cBlockArea Surrounding;
|
||||||
/// Read a 11x7x11 area.
|
/// Read a 11x7x11 area.
|
||||||
Surrounding.Read(
|
Surrounding.Read(
|
||||||
|
|
Loading…
Reference in New Issue