add compatibility to previous skinsdb version

This commit is contained in:
Alexander Weber 2022-03-06 17:55:14 +01:00
parent dc20c0ba1f
commit 683c8ef074
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +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")
skin_obj:set_hand_from_texture()
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')