diff options
author | Alexander Weber <web.alexander@web.de> | 2018-02-13 22:31:44 +0100 |
---|---|---|
committer | sofar <sofar+github@foo-projects.org> | 2018-02-19 11:18:18 -0800 |
commit | 5498faa88aff6893ee68fa4d6da83f0d5d3a24da (patch) | |
tree | 315502f521a67b914278675be6b0f10eebc0855e /init.lua | |
parent | 51b6cf2e3a6d0c2fb054863714abdae9d69aadd1 (diff) |
consolidate redundant skinsinfo formspec code
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |