0
0
Fork 0

Make mobs not fear cliffs if fear_height is 0

This commit is contained in:
jordan4ibanez 2021-04-16 18:17:51 -04:00
parent 8ca5f221ec
commit ed456ecb47
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ local state_execution = function(self,dtime)
--this requires a mob to turn, removing the
--ease of a full implementation for it in a single
--function)
if node_in_front_of == 2 or cliff_check(self,dtime) then
if node_in_front_of == 2 or (self.fear_height ~= 0 and cliff_check(self,dtime)) then
--turn 45 degrees if so
quick_rotate_45(self,dtime)
end