Update intllib support to avoid using deprecated functions

This commit is contained in:
Hugo Locurcio
2019-03-03 20:11:18 +01:00
parent 2fe764ba79
commit 09e69ec0b6
3 changed files with 52 additions and 7 deletions

View File

@ -10,15 +10,12 @@ Licensed under the zlib license. See LICENSE.md for more information.
moreores = {}
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
local modpath = minetest.get_modpath("moreores")
local S, NS = dofile(modpath .. "/intllib.lua")
moreores.S = S
moreores.NS = NS
dofile(modpath .. "/_config.txt")
-- `mg` mapgen support