forked from VoxeLibre/VoxeLibre
Slightly more frequent failed pathing attempts for villagers
This commit is contained in:
parent
2d0ea5e205
commit
8b0c4c17ad
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue