mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
update elytra cape instantly
This commit is contained in:
parent
0f91b763e9
commit
146b0ade37
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue