Slightly more frequent failed pathing attempts for villagers

This commit is contained in:
ancientmarinerdev 2022-11-03 21:27:59 +00:00
parent 2d0ea5e205
commit 8b0c4c17ad

View File

@ -3460,7 +3460,7 @@ local gopath_last = os.time()
function mcl_mobs:gopath(self,target,callback_arrived)
if self.state == PATHFINDING then mcl_log("Already pathfinding, don't set another until done.") return end
if self._pf_last_failed and (os.time() - self._pf_last_failed) < 60 then
if self._pf_last_failed and (os.time() - self._pf_last_failed) < 30 then
mcl_log("We are not ready to path as last fail is less than threshold: " .. (os.time() - self._pf_last_failed))
return
else