mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Enable concurrent pathing so pathing orders aren't queued
This commit is contained in:
parent
ad137304bc
commit
2d0ea5e205
1 changed files with 8 additions and 7 deletions
|
@ -2607,8 +2607,9 @@ local function check_gowp(self,dtime)
|
||||||
-- 0.1 is optimal.
|
-- 0.1 is optimal.
|
||||||
--less frequently = villager will get sent back after passing a point.
|
--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
|
--more frequently = villager will fail points they shouldn't they just didn't get there yet
|
||||||
if gowp_etime < 0.1 then return end
|
|
||||||
gowp_etime = 0
|
--if gowp_etime < 0.05 then return end
|
||||||
|
--gowp_etime = 0
|
||||||
local p = self.object:get_pos()
|
local p = self.object:get_pos()
|
||||||
|
|
||||||
-- no destination
|
-- no destination
|
||||||
|
@ -3466,11 +3467,11 @@ function mcl_mobs:gopath(self,target,callback_arrived)
|
||||||
mcl_log("We are ready to pathfind, no previous fail or we are past threshold")
|
mcl_log("We are ready to pathfind, no previous fail or we are past threshold")
|
||||||
end
|
end
|
||||||
|
|
||||||
if os.time() - gopath_last < 5 then
|
--if os.time() - gopath_last < 5 then
|
||||||
mcl_log("Not ready to path yet")
|
-- mcl_log("Not ready to path yet")
|
||||||
return
|
-- return
|
||||||
end
|
--end
|
||||||
gopath_last = os.time()
|
--gopath_last = os.time()
|
||||||
|
|
||||||
self.order = nil
|
self.order = nil
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue