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