summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2017-06-16 23:16:22 +0200
committerAlexander Weber <web.alexander@web.de>2017-06-16 23:16:22 +0200
commit8d991881aad4bc1ce02903c02297fadb45c8e915 (patch)
treed76274795a942911fb8be883dea0b595e7da5509 /init.lua
parent28d28390ce5d67f47db184cbbbc4ecd74be77eb2 (diff)
get the new api working with sfinv and 3d_armor
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 93a16ca..b9abc7a 100644
--- a/init.lua
+++ b/init.lua
@@ -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