mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
tidy compat
This commit is contained in:
parent
f31cf75b24
commit
e2ee5c62c7
13
api.lua
13
api.lua
@ -23,10 +23,15 @@ end
|
||||
-- CMI support check
|
||||
local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs.mod = "redo"
|
||||
mobs.version = "20230726"
|
||||
mobs.intllib = S
|
||||
mobs.invis = minetest.global_exists("invisibility") and invisibility or {}
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20230726",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||
node_snow = minetest.registered_aliases["mapgen_snow"] or "mcl_core:snow",
|
||||
node_dirt = minetest.registered_aliases["mapgen_dirt"] or "mcl_core:dirt"
|
||||
}
|
||||
mobs.fallback_node = mobs.node_dirt
|
||||
|
||||
|
||||
-- localize common functions
|
||||
|
@ -1,10 +0,0 @@
|
||||
|
||||
local mc2 = minetest.get_modpath("mcl_core")
|
||||
|
||||
mobs.node_ice = minetest.registered_aliases["mapgen_ice"] or "mcl_core:ice"
|
||||
mobs.node_snow = minetest.registered_aliases["mapgen_snow"] or "mcl_core:snow"
|
||||
mobs.node_snowblock = minetest.registered_aliases["mapgen_snowblock"] or "mcl_core:snowblock"
|
||||
mobs.node_stone = minetest.registered_aliases["mapgen_stone"] or "mcl_core:stone"
|
||||
mobs.node_dirt = minetest.registered_aliases["mapgen_dirt"] or "mcl_core:dirt"
|
||||
|
||||
mobs.fallback_node = mobs.node_dirt
|
Loading…
Reference in New Issue
Block a user