Update armor after skin change

This commit is contained in:
Wuzzy 2021-08-07 21:10:41 +02:00
parent 93eab0bfe2
commit e66d211cf7
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ function player_skins.set_skin(name, skin, cloth, bands, hair, eyes)
local meta = player:get_meta()
local metastring = skin..","..eyes..","..hair..","..cloth..","..bands
meta:set_string("player_skins:skindata", metastring)
if minetest.global_exists("armor") then
armor.update(player)
end
return true
end