mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
update translation detection
This commit is contained in:
parent
9f02777f14
commit
497ff7241f
9
api.lua
9
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 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")
|
local use_cmi = minetest.global_exists("cmi")
|
||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20200727",
|
version = "20200825",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {}
|
invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user