diff --git a/api.lua b/api.lua index 7505491..90ca429 100644 --- a/api.lua +++ b/api.lua @@ -1,12 +1,15 @@ --- Intllib and CMI support check +-- Load support for intllib. local MP = minetest.get_modpath(minetest.get_current_modname()) -local S, NS = dofile(MP .. "/intllib.lua") +local S = minetest.get_translator and minetest.get_translator("mobs_redo") or + dofile(MP .. "/intllib.lua") + +-- CMI support check local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20200727", + version = "20200825", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} }