summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2018-02-13 22:31:44 +0100
committersofar <sofar+github@foo-projects.org>2018-02-19 11:18:18 -0800
commit5498faa88aff6893ee68fa4d6da83f0d5d3a24da (patch)
tree315502f521a67b914278675be6b0f10eebc0855e /init.lua
parent51b6cf2e3a6d0c2fb054863714abdae9d69aadd1 (diff)
consolidate redundant skinsinfo formspec code
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 37331e0..32a2205 100644
--- a/init.lua
+++ b/init.lua
@@ -9,9 +9,18 @@ skins = {}
skins.modpath = minetest.get_modpath(minetest.get_current_modname())
skins.default = "character"
+local S
+if minetest.get_modpath("intllib") then
+ skins.S = intllib.Getter()
+else
+ skins.S = function(s) return s end
+end
+
+
dofile(skins.modpath.."/skin_meta_api.lua")
dofile(skins.modpath.."/api.lua")
dofile(skins.modpath.."/skinlist.lua")
+dofile(skins.modpath.."/formspecs.lua")
dofile(skins.modpath.."/chatcommands.lua")
-- Unified inventory page/integration
if minetest.get_modpath("unified_inventory") then