1
0
mirror of https://github.com/mt-mods/biome_lib.git synced 2024-12-26 10:50:17 +01:00

Replace deprecated call to 'intllib.Getter'

This commit is contained in:
Jordan Irwin 2018-11-25 23:54:02 +00:00 committed by Vanessa Dannenberg
parent 3a6c8abb70
commit ad12e97281

View File

@ -34,8 +34,12 @@ biome_lib.queue_run_ratio = tonumber(minetest.settings:get("biome_lib_queue_run_
-- Boilerplate to support localized strings if intllib mod is installed. -- Boilerplate to support localized strings if intllib mod is installed.
local S local S
if minetest.get_modpath("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