1
0
Fork 0

Attacking mobs don't care if they cant make a jump.

they try anyway
This commit is contained in:
epCode 2022-10-25 18:54:57 +00:00
parent 70beaf6b3d
commit 636e5545a7
1 changed files with 1 additions and 1 deletions

View File

@ -1448,7 +1448,7 @@ local do_jump = function(self)
}, "air")
-- we don't attempt to jump if there's a stack of blocks blocking
if minetest.registered_nodes[nodTop.name].walkable == true then
if minetest.registered_nodes[nodTop.name].walkable == true and not (self.attack and self.state == "attack") then
return false
end