use current intllib API

This commit is contained in:
Vanessa Ezekowitz 2014-12-27 01:02:35 -05:00
parent ef9c129aa2
commit 127caef5b3
2 changed files with 5 additions and 5 deletions

View File

@ -1,2 +1,4 @@
default
dye
intllib?

View File

@ -31,14 +31,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function ( s ) return s end
S = function(s) return s end
end
-- Items/recipes needed to generate the few base colors that are not
-- provided by the standard dyes mod.