mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-06-30 23:20:31 +02:00
Update intllib support to avoid using deprecated functions
This commit is contained in:
11
init.lua
11
init.lua
@ -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
|
||||
|
Reference in New Issue
Block a user