forked from VoxeLibre/VoxeLibre
Add a prevention in case players get stuck with the damage animation
This commit is contained in:
parent
fe90424ee4
commit
44c656502f
|
@ -230,6 +230,9 @@ minetest.register_globalstep(function(dtime)
|
|||
player_set_animation(player, "die")
|
||||
elseif player:get_meta():get_int("mcl_damage:damage_animation") > 0 then
|
||||
player_set_animation(player, "walk", animation_speed_mod)
|
||||
minetest.after(0.5, function()
|
||||
player:get_meta():set_int("mcl_damage:damage_animation", 0)
|
||||
end)
|
||||
elseif mcl_playerplus.elytra[player] and mcl_playerplus.elytra[player].active then
|
||||
player_set_animation(player, "stand")
|
||||
elseif walking and velocity.x > 0.35
|
||||
|
|
Loading…
Reference in New Issue