1
0
Fork 0

Fix random mob teleportations once and for all!

objects
Wuzzy 2018-03-31 00:21:55 +02:00
parent 7be5914463
commit d6228145c6
1 changed files with 2 additions and 0 deletions

View File

@ -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") self.path.way = minetest.find_path(s, p1, 16, self.stepheight, dropheight, "A*_noprefetch")
-- attempt to unstick mob that is "daydreaming" -- attempt to unstick mob that is "daydreaming"
--[[ BUT NOT IN MINECLONE2, SILLY!
self.object:setpos({ self.object:setpos({
x = s.x + 0.1 * (random() * 2 - 1), x = s.x + 0.1 * (random() * 2 - 1),
y = s.y + 1, y = s.y + 1,
z = s.z + 0.1 * (random() * 2 - 1) z = s.z + 0.1 * (random() * 2 - 1)
}) })
]]
self.state = "" self.state = ""
do_attack(self, self.attack) do_attack(self, self.attack)