forked from mtcontrib/minetest_hudbars
Replace deprecated intllib call:
- 'Getter' with 'make_gettext_pair' if available Thanks, AntumDeluge!
This commit is contained in:
parent
f19a85c537
commit
aa5fef1298
8
init.lua
8
init.lua
@ -1,6 +1,10 @@
|
|||||||
local S
|
local S
|
||||||
if (minetest.get_modpath("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