1
0

Villager doesn't check the environment for crops if it doesn't need to.

This commit is contained in:
STRWarrior 2014-01-27 22:04:24 +01:00
parent babc80ed77
commit 807a4dba98

View File

@ -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(