forked from MineClone5/MineClone5
mcl_mapgen_core: Make mcl_stairs an optional dependency.
The "mapgen_stair" aliases are only used by v6, and even then appear to be optional in practice, so there's no reason for mcl_mapgen_core to require mcl_stairs.
This commit is contained in:
parent
51cdc69b99
commit
5cad35dbfe
|
@ -43,11 +43,14 @@ minetest.register_alias("mapgen_snow", "mcl_core:snow")
|
||||||
minetest.register_alias("mapgen_snowblock", "mcl_core:snowblock")
|
minetest.register_alias("mapgen_snowblock", "mcl_core:snowblock")
|
||||||
minetest.register_alias("mapgen_ice", "mcl_core:ice")
|
minetest.register_alias("mapgen_ice", "mcl_core:ice")
|
||||||
|
|
||||||
minetest.register_alias("mapgen_stair_cobble", "mcl_stairs:stair_cobble")
|
|
||||||
minetest.register_alias("mapgen_sandstonebrick", "mcl_core:sandstonesmooth")
|
minetest.register_alias("mapgen_sandstonebrick", "mcl_core:sandstonesmooth")
|
||||||
minetest.register_alias("mapgen_stair_sandstonebrick", "mcl_stairs:stair_sandstone")
|
|
||||||
minetest.register_alias("mapgen_stair_sandstone_block", "mcl_stairs:stair_sandstone")
|
if minetest.get_modpath("mcl_stairs") then
|
||||||
minetest.register_alias("mapgen_stair_desert_stone", "mcl_stairs:stair_sandstone")
|
minetest.register_alias("mapgen_stair_cobble", "mcl_stairs:stair_cobble")
|
||||||
|
minetest.register_alias("mapgen_stair_sandstonebrick", "mcl_stairs:stair_sandstone")
|
||||||
|
minetest.register_alias("mapgen_stair_sandstone_block", "mcl_stairs:stair_sandstone")
|
||||||
|
minetest.register_alias("mapgen_stair_desert_stone", "mcl_stairs:stair_sandstone")
|
||||||
|
end
|
||||||
|
|
||||||
local mg_name = minetest.get_mapgen_setting("mg_name")
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
local superflat = mg_name == "flat" and minetest.get_mapgen_setting("mcl_superflat_classic") == "true"
|
local superflat = mg_name == "flat" and minetest.get_mapgen_setting("mcl_superflat_classic") == "true"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name = mcl_mapgen_core
|
name = mcl_mapgen_core
|
||||||
author = Wuzzy
|
author = Wuzzy
|
||||||
description = The core of the MCL2 mapgen
|
description = The core of the MCL2 mapgen
|
||||||
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds, mcl_stairs, mcl_structures
|
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds, mcl_structures
|
||||||
optional_depends = mclx_core, mcl_cocoas, mcl_sponges, mcl_ocean, mcl_monster_eggs
|
optional_depends = mclx_core, mcl_cocoas, mcl_sponges, mcl_ocean, mcl_stairs, mcl_monster_eggs
|
||||||
|
|
Loading…
Reference in New Issue