From ec5b0903be5eb5abce822a2c7b87eef918452228 Mon Sep 17 00:00:00 2001 From: MrRar Date: Tue, 4 Apr 2023 14:05:15 -0600 Subject: [PATCH] Make enchanted elytra usable --- mods/PLAYER/mcl_playerplus/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index 8ace0a9a9..782ac039e 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -239,7 +239,7 @@ minetest.register_globalstep(function(dtime) elytra.speed = 1 - (direction.y/2 + 0.5) end - elytra.active = player:get_inventory():get_stack("armor", 3):get_name() == "mcl_armor:elytra" + elytra.active = player:get_inventory():get_stack("armor", 3):get_name():find("mcl_armor:elytra") and not parent and (elytra.active or (is_just_jumped and player_velocity.y < -0)) and ((not minetest.registered_nodes[fly_node].walkable) or fly_node == "ignore")