mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 16:41:06 +01:00
Merge pull request 'Fix mobs not following player wielding the follow item' (#2768) from fix_mob_itemfollow into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2768
This commit is contained in:
commit
2b5c409b12
1 changed files with 3 additions and 3 deletions
|
@ -3739,6 +3739,9 @@ local mob_step = function(self, dtime)
|
|||
return
|
||||
end
|
||||
|
||||
--Mob following code.
|
||||
follow_flop(self)
|
||||
|
||||
-- smooth rotation by ThomasMonroe314
|
||||
if self._turn_to then
|
||||
set_yaw(self, self._turn_to, .1)
|
||||
|
@ -3968,9 +3971,6 @@ local mob_step = function(self, dtime)
|
|||
return
|
||||
end
|
||||
|
||||
--Mob following code.
|
||||
follow_flop(self)
|
||||
|
||||
if is_at_cliff_or_danger(self) then
|
||||
set_velocity(self, 0)
|
||||
self.state = "stand"
|
||||
|
|
Loading…
Reference in a new issue