hello for create the auto kill animal pasture i need to override this function
function WaitForPastureVacancy:pasture_check()
local pasture_component = self._args.pasture:get_component(‘stonehearth:shepherd_pasture’)
if pasture_component and
pasture_component:get_num_animals() < pasture_component:get_min_animals() then
return true
end
return false
end
but i dont find how to do that in the forum or in the current mod.
i dont see mixinto for lua.
i dont know how i can listen this event.
can you explain me ?
thanks.