diff options
author | Alexander Weber <web.alexander@web.de> | 2017-06-16 23:16:22 +0200 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2017-06-16 23:16:22 +0200 |
commit | 8d991881aad4bc1ce02903c02297fadb45c8e915 (patch) | |
tree | d76274795a942911fb8be883dea0b595e7da5509 /init.lua | |
parent | 28d28390ce5d67f47db184cbbbc4ecd74be77eb2 (diff) |
get the new api working with sfinv and 3d_armor
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ skins = {} skins.modpath = minetest.get_modpath(minetest.get_current_modname()) skins.default = "character_1" -dofile(skins.modpath.."skin_meta_api.lua") +dofile(skins.modpath.."/skin_meta_api.lua") dofile(skins.modpath.."/api.lua") dofile(skins.modpath.."/skinlist.lua") @@ -30,6 +30,6 @@ if minetest.global_exists("armor") then end armor.get_preview = function(self, name) local skin = skins.get_player_skin(minetest.get_player_by_name(name)) - return skin:get_meta("preview") + return skin:get_preview() end end |