From 8b0c4c17adf79c88d20326db7be350f0a067583c Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Thu, 3 Nov 2022 21:27:59 +0000 Subject: [PATCH] Slightly more frequent failed pathing attempts for villagers --- mods/ENTITIES/mcl_mobs/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index f11d98a1a..42dad6a06 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -2607,7 +2607,7 @@ local function check_gowp(self,dtime) -- 0.1 is optimal. --less frequently = villager will get sent back after passing a point. --more frequently = villager will fail points they shouldn't they just didn't get there yet - + --if gowp_etime < 0.05 then return end --gowp_etime = 0 local p = self.object:get_pos() @@ -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