fix attack glitch when jumping
This commit is contained in:
parent
b106cbca24
commit
186475ed79
2
api.lua
2
api.lua
@ -415,10 +415,12 @@ do_jump = function(self)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
if self.state ~= "attack" then
|
||||||
self.state = "stand"
|
self.state = "stand"
|
||||||
set_animation(self, "stand")
|
set_animation(self, "stand")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- blast damage to entities nearby (modified from TNT mod)
|
-- blast damage to entities nearby (modified from TNT mod)
|
||||||
function entity_physics(pos, radius)
|
function entity_physics(pos, radius)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user