Make enchanted elytra usable

This commit is contained in:
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2023-04-04 14:05:15 -06:00 committed by PrairieWind
parent 7dc09e3ebd
commit ec5b0903be
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ minetest.register_globalstep(function(dtime)
elytra.speed = 1 - (direction.y/2 + 0.5) elytra.speed = 1 - (direction.y/2 + 0.5)
end 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 not parent
and (elytra.active or (is_just_jumped and player_velocity.y < -0)) and (elytra.active or (is_just_jumped and player_velocity.y < -0))
and ((not minetest.registered_nodes[fly_node].walkable) or fly_node == "ignore") and ((not minetest.registered_nodes[fly_node].walkable) or fly_node == "ignore")