From 4c0bad754e85ca8ca4cee2a10dbd945ca0952fb2 Mon Sep 17 00:00:00 2001 From: Johannes Fritz Date: Fri, 29 Dec 2023 12:13:23 -0600 Subject: [PATCH] Show elytra animation when using elytra --- mods/PLAYER/mcl_player/init.lua | 2 +- mods/PLAYER/mcl_playerplus/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/PLAYER/mcl_player/init.lua b/mods/PLAYER/mcl_player/init.lua index fb3400329..d5e1df5a7 100644 --- a/mods/PLAYER/mcl_player/init.lua +++ b/mods/PLAYER/mcl_player/init.lua @@ -242,7 +242,7 @@ minetest.register_globalstep(function(dtime) 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 or walking and velocity.x < -0.35 or walking and velocity.z > 0.35 diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index e3d323854..8343290bf 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -366,7 +366,7 @@ minetest.register_globalstep(function(dtime) set_properties(player, player_props_elytra) -- control body bone when flying - local body_rot = vector.new((75 - degrees(dir_to_pitch(player_velocity))), -player_vel_yaw + yaw, 0) + local body_rot = vector.new(degrees(dir_to_pitch(player_velocity)) + 110, -player_vel_yaw + yaw, 180) set_bone_pos(player, "Body_Control", nil, body_rot) elseif parent then set_properties(player, player_props_riding)