forked from minetest-mods/moreblocks
Replace deprecated function 'intllib.Getter':
- Check first for 'intllib.make_gettext_pair', otherwise continue using deprecated function
This commit is contained in:
parent
f3005d6367
commit
acd570ba0d
4
init.lua
4
init.lua
@ -12,7 +12,11 @@ moreblocks = {}
|
||||
|
||||
local S
|
||||
if minetest.global_exists("intllib") then
|
||||
if intllib.make_gettext_pair then
|
||||
S = intllib.make_gettext_pair()
|
||||
else
|
||||
S = intllib.Getter()
|
||||
end
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user