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

master
STRWarrior 2014-01-27 22:04:24 +01:00
parent babc80ed77
commit 807a4dba98
1 changed files with 5 additions and 0 deletions

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(