diff --git a/api.lua b/api.lua index 56f4c1b..ad85dc5 100644 --- a/api.lua +++ b/api.lua @@ -1441,12 +1441,13 @@ minetest.register_entity(name, { -- rnd: new movement direction if self.path.stuck and self.path.way then - if #self.path.way>50 then self.path.stuck = false return end -- no paths longer than 50 + if #self.path.way>50 or dist