Player skins: Update inventory preview (part 2)
This commit is contained in:
parent
2c5038ad05
commit
e47bd634d4
4 changed files with 42 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
mcl_player
|
||||
mcl_inventory?
|
||||
intllib?
|
||||
3d_armor?
|
||||
|
|
|
@ -72,6 +72,9 @@ skins.set_player_skin = function(player, skin_id)
|
|||
armor.textures[playername].skin = skin .. ".png"
|
||||
armor:update_player_visuals(player)
|
||||
end
|
||||
if minetest.get_modpath("mcl_inventory") then
|
||||
mcl_inventory.update_inventory_formspec(player)
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue