From 5498faa88aff6893ee68fa4d6da83f0d5d3a24da Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Tue, 13 Feb 2018 22:31:44 +0100 Subject: consolidate redundant skinsinfo formspec code --- init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'init.lua') 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 -- cgit v1.2.3