mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-01-13 11:20:23 +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
6
init.lua
6
init.lua
@ -12,7 +12,11 @@ moreblocks = {}
|
|||||||
|
|
||||||
local S
|
local S
|
||||||
if minetest.global_exists("intllib") then
|
if minetest.global_exists("intllib") then
|
||||||
S = intllib.Getter()
|
if intllib.make_gettext_pair then
|
||||||
|
S = intllib.make_gettext_pair()
|
||||||
|
else
|
||||||
|
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