mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
Attacking mobs don't care if they cant make a jump.
they try anyway
This commit is contained in:
parent
70beaf6b3d
commit
636e5545a7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue