mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-03 00:20:43 +02:00
Replace deprecated function 'intllib.Getter':
- Check first for 'intllib.make_gettext_pair', otherwise continue using deprecated function
This commit is contained in:
6
init.lua
6
init.lua
@ -12,7 +12,11 @@ moreblocks = {}
|
||||
|
||||
local S
|
||||
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
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
Reference in New Issue
Block a user