From d6228145c66f4ae8cdc512fefb8996e40efc3e50 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 31 Mar 2018 00:21:55 +0200 Subject: [PATCH] Fix random mob teleportations once and for all! --- mods/ENTITIES/mobs/api.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ENTITIES/mobs/api.lua b/mods/ENTITIES/mobs/api.lua index 75a0420ced..1f9d03c0b7 100644 --- a/mods/ENTITIES/mobs/api.lua +++ b/mods/ENTITIES/mobs/api.lua @@ -1109,11 +1109,13 @@ local smart_mobs = function(self, s, p, dist, dtime) self.path.way = minetest.find_path(s, p1, 16, self.stepheight, dropheight, "A*_noprefetch") -- attempt to unstick mob that is "daydreaming" + --[[ BUT NOT IN MINECLONE2, SILLY! self.object:setpos({ x = s.x + 0.1 * (random() * 2 - 1), y = s.y + 1, z = s.z + 0.1 * (random() * 2 - 1) }) + ]] self.state = "" do_attack(self, self.attack)