From d466693f276cf8e694617464c8773f45f2a19322 Mon Sep 17 00:00:00 2001 From: epCode <64379263+epCode@users.noreply.github.com> Date: Sun, 16 Oct 2022 18:43:35 -0700 Subject: [PATCH] make player not walk while using elytra --- mods/PLAYER/mcl_player/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_player/init.lua b/mods/PLAYER/mcl_player/init.lua index e915efbe2..6c521be72 100644 --- a/mods/PLAYER/mcl_player/init.lua +++ b/mods/PLAYER/mcl_player/init.lua @@ -91,7 +91,7 @@ local function update_player_textures(player) end player:set_properties({ textures = textures }) - + -- Delay calling the callbacks because mods (including mcl_player) -- need to fully initialize player data from minetest.register_on_joinplayer -- before callbacks run @@ -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