From 0e32dd2a249b6bf97ea5d9cbad5957c98576a27c Mon Sep 17 00:00:00 2001 From: rnd1 Date: Wed, 10 Feb 2016 11:31:02 +0100 Subject: [PATCH] tweaks --- api.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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