mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-12-26 10:40:22 +01:00
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
|
local S
|
||||||
if minetest.global_exists("intllib") then
|
if minetest.global_exists("intllib") then
|
||||||
|
if intllib.make_gettext_pair then
|
||||||
|
S = intllib.make_gettext_pair()
|
||||||
|
else
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
S = function(s) return s end
|
S = function(s) return s end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user