mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Make mobs not fear cliffs if fear_height is 0
This commit is contained in:
parent
8ca5f221ec
commit
ed456ecb47
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue