1
0
Fork 0

Fix mobs not following player wielding the follow item

This commit is contained in:
cora 2022-10-12 23:20:02 +02:00
parent b838646efb
commit a4a5b72380
1 changed files with 3 additions and 3 deletions

View File

@ -3739,6 +3739,9 @@ local mob_step = function(self, dtime)
return return
end end
--Mob following code.
follow_flop(self)
-- smooth rotation by ThomasMonroe314 -- smooth rotation by ThomasMonroe314
if self._turn_to then if self._turn_to then
set_yaw(self, self._turn_to, .1) set_yaw(self, self._turn_to, .1)
@ -3968,9 +3971,6 @@ local mob_step = function(self, dtime)
return return
end end
--Mob following code.
follow_flop(self)
if is_at_cliff_or_danger(self) then if is_at_cliff_or_danger(self) then
set_velocity(self, 0) set_velocity(self, 0)
self.state = "stand" self.state = "stand"