forked from MineClone5/MineClone5
Add comment to state_execution
This commit is contained in:
parent
c761db86c7
commit
05d06a4c8f
|
@ -126,8 +126,6 @@ local state_execution = function(self,dtime)
|
||||||
--enable rotation locking
|
--enable rotation locking
|
||||||
mobs.movement_rotation_lock(self)
|
mobs.movement_rotation_lock(self)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--check for nodes to jump over
|
--check for nodes to jump over
|
||||||
local node_in_front_of = jump_check(self)
|
local node_in_front_of = jump_check(self)
|
||||||
|
|
||||||
|
@ -142,6 +140,7 @@ local state_execution = function(self,dtime)
|
||||||
elseif node_in_front_of == 2 or (self.fear_height ~= 0 and cliff_check(self,dtime)) then
|
elseif node_in_front_of == 2 or (self.fear_height ~= 0 and cliff_check(self,dtime)) then
|
||||||
--turn 45 degrees if so
|
--turn 45 degrees if so
|
||||||
quick_rotate_45(self,dtime)
|
quick_rotate_45(self,dtime)
|
||||||
|
--stop the mob so it doesn't fall off
|
||||||
mobs.set_velocity(self,0)
|
mobs.set_velocity(self,0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue