[overrides] Replace deprecated function 'intllib.Getter':
- Check first for 'intllib.make_gettext_pair', otherwise continue using function 'intllib.Getter'.master
parent
a297063491
commit
f643879f3e
|
@ -29,7 +29,11 @@
|
|||
local S
|
||||
if minetest.global_exists("intllib") then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter("animalmaterials")
|
||||
if intllib.make_gettext_pair then
|
||||
S = intllib.make_gettext_pair("animalmaterials")
|
||||
else
|
||||
S = intllib.Getter("animalmaterials")
|
||||
end
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
|
|
@ -29,7 +29,11 @@
|
|||
local S
|
||||
if minetest.global_exists("intllib") then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter("mobs")
|
||||
if intllib.make_gettext_pair then
|
||||
S = intllib.make_gettext_pair("mobs")
|
||||
else
|
||||
S = intllib.Getter("mobs")
|
||||
end
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue