add skinsdb hand support for wardrobe skins (#24)

* add skinsdb hand support for wardrobe skins

* add compatibility to previous skinsdb version
This commit is contained in:
bell07 2022-03-06 18:20:18 +01:00 committed by GitHub
parent 694bfe5fe7
commit 2f0e52f978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,9 @@ if skinsdb_mod_path then
skin_obj:set_preview("homedecor_clothes_"..skin_name.."_preview.png")
skin_obj:set_texture("homedecor_clothes_"..skin_name..".png")
if skin_obj.set_hand_from_texture then
skin_obj:set_hand_from_texture()
end
skin_obj:set_meta("name", S("Wardrobe").." "..skin_name)
skin_obj:set_meta("author", 'Calinou and Jordach')
skin_obj:set_meta("license", 'CC-by-SA-4.0')