1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

View File

@ -3460,7 +3460,7 @@ local gopath_last = os.time()
function mcl_mobs:gopath(self,target,callback_arrived) 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.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)) mcl_log("We are not ready to path as last fail is less than threshold: " .. (os.time() - self._pf_last_failed))
return return
else else