minetest-mods / skinsdb

Player skin mod, supporting unified_inventory, sfinv and smart_inventory
27 stars 41 forks source link

Visual update fixes if skin change externally #13

Closed bell07 closed 6 years ago

bell07 commented 6 years ago

(with and without 3d armor) I had some issues with updates if the selection is done without "set_skin()" fromspec field.At other site updates was done twice.

Now the skins.update_player_skin(player) does the visuals update if anything changed (like armor switched) and skins.set_player_skin(player, skin) is for update on skin selection, to call the set_skin() hook, used in character_creator to start the character_creator-formspec...