forked from mtcontrib/moretrees
use current intllib API
This commit is contained in:
8
init.lua
8
init.lua
@ -45,12 +45,12 @@ end
|
||||
|
||||
-- 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
|
||||
moretrees.intllib = S
|
||||
|
||||
-- infinite stacks checking
|
||||
|
||||
|
Reference in New Issue
Block a user