mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-24 15:02:32 +01:00
Slightly more frequent failed pathing attempts for villagers
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user