forked from VoxeLibre/VoxeLibre
Fix random mob teleportations once and for all!
This commit is contained in:
parent
7be5914463
commit
d6228145c6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue