From 146b0ade37e579b6622ce6e15d814e161b5b18c7 Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sun, 17 Dec 2023 15:06:09 +0100 Subject: [PATCH] update elytra cape instantly --- mods/PLAYER/mcl_skins/edit_skin.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/PLAYER/mcl_skins/edit_skin.lua b/mods/PLAYER/mcl_skins/edit_skin.lua index 2d3b50a11..09374c70a 100644 --- a/mods/PLAYER/mcl_skins/edit_skin.lua +++ b/mods/PLAYER/mcl_skins/edit_skin.lua @@ -542,6 +542,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) elseif fields.nocape then mcl_skins.player_skins[player].cape = "blank.png" mcl_skins.update_player_skin(player) + mcl_armor.update(player) --update elytra cape return true elseif active_tab == "cape" then for cape_index = ((page_num - 1) * 5) + 1, math.min(#mcl_skins.cape, page_num * 5) do @@ -549,6 +550,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if fields[cape.name] then mcl_skins.player_skins[player].cape = cape.mask -- the actual overlay image mcl_skins.update_player_skin(player) + mcl_armor.update(player) --update elytra cape return true end end