diff options
Diffstat (limited to 'biome_lib')
-rw-r--r-- | biome_lib/init.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/biome_lib/init.lua b/biome_lib/init.lua index f8b05d2..818011f 100644 --- a/biome_lib/init.lua +++ b/biome_lib/init.lua @@ -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. local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() +if minetest.global_exists("intllib") then + if intllib.make_gettext_pair then + S = intllib.make_gettext_pair() + else + S = intllib.Getter() + end else S = function(s) return s end end |