1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-24 17:50:21 +01:00

tidy compat

This commit is contained in:
tenplus1 2023-07-26 14:15:03 +01:00
parent f31cf75b24
commit e2ee5c62c7
3 changed files with 9 additions and 19 deletions

13
api.lua
View File

@ -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

View File

@ -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

View File

@ -7,11 +7,6 @@ minetest.register_privilege("peaceful_player", {
give_to_singleplayer = false
})
-- global
mobs = {}
-- Compatibility
dofile(path .. "/compatibility.lua")
-- Mob API
dofile(path .. "/api.lua")