mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-10 18:47:31 +01:00
Make mobs not fear cliffs if fear_height is 0
This commit is contained in:
parent
8ca5f221ec
commit
ed456ecb47
@ -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 New Issue
Block a user