1
0
Fork 0

make player not walk while using elytra

This commit is contained in:
epCode 2022-10-16 18:43:35 -07:00 committed by cora
parent b4374fe961
commit d466693f27
1 changed files with 3 additions and 1 deletions

View File

@ -234,6 +234,8 @@ minetest.register_globalstep(function(dtime)
-- Apply animations based on what the player is doing
if player:get_hp() == 0 then
player_set_animation(player, "die")
elseif mcl_playerplus.elytra[player] and mcl_playerplus.elytra[player].active then
player_set_animation(player, "stand")
elseif walking and velocity.x > 0.35
or walking and velocity.x < -0.35
or walking and velocity.z > 0.35