From b267cf26579623565f5a85bee9e8584a5467a85f Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Fri, 16 Jun 2017 21:40:54 +0200 Subject: renamed players.lua -> api.lua; some cleanups --- init.lua | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index d49335d..953e1b6 100644 --- a/init.lua +++ b/init.lua @@ -9,26 +9,8 @@ skins = {} skins.modpath = minetest.get_modpath(minetest.get_current_modname()) skins.default = "character_1" -skins.type = { SPRITE=0, MODEL=1, ERROR=99 } -skins.get_type = function(texture) - if not skins.is_skin(texture) then - return skins.type.ERROR - end - return skins.type.MODEL -end - -skins.is_skin = function(texture) - if not texture then - return false - end - if not skins.meta[texture] then - return false - end - return true -end - +dofile(skins.modpath.."/api.lua") dofile(skins.modpath.."/skinlist.lua") -dofile(skins.modpath.."/players.lua") -- Unified inventory page/integration if minetest.get_modpath("unified_inventory") then -- cgit v1.2.3