diff --git a/api.lua b/api.lua index da2e1a2..aa14c4d 100644 --- a/api.lua +++ b/api.lua @@ -1489,18 +1489,18 @@ minetest.register_entity(name, { local p1 = self.attack:getpos();p1.x=math.floor(p1.x+0.5);p1.y=math.floor(p1.y+0.5);p1.z=math.floor(p1.z+0.5); --minetest.find_path(pos1, pos2, searchdistance, max_jump, max_drop, algorithm) self.path.way = minetest.find_path(s, p1, 16, 2, 6,"Dijkstra"); --"A*_noprefetch"); - if not self.path.way then -- no path found + if not self.path.way then -- no path found, try something else self.path.stuck=false if enable_pathfind_digging and self.path.stuck_timer>1 then -- lets make way by digging/building if not accessible if s.y