forked from MineClone5/MineClone5
mcl_mapgen_core: Make mcl_structures an optional dependency.
This commit is contained in:
parent
5cad35dbfe
commit
2bdaa77932
|
@ -1268,11 +1268,17 @@ local function generate_end_exit_portal(pos)
|
||||||
else
|
else
|
||||||
minetest.log("error", "[mcl_mapgen_core] ERROR! Ender dragon doesn't want to spawn")
|
minetest.log("error", "[mcl_mapgen_core] ERROR! Ender dragon doesn't want to spawn")
|
||||||
end
|
end
|
||||||
|
if mcl_structures ~= nil then
|
||||||
mcl_structures.call_struct(pos, "end_exit_portal")
|
mcl_structures.call_struct(pos, "end_exit_portal")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: Try to use more efficient structure generating code
|
-- TODO: Try to use more efficient structure generating code
|
||||||
local function generate_structures(minp, maxp, blockseed, biomemap)
|
local function generate_structures(minp, maxp, blockseed, biomemap)
|
||||||
|
if mcl_structures == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local chunk_has_desert_well = false
|
local chunk_has_desert_well = false
|
||||||
local chunk_has_desert_temple = false
|
local chunk_has_desert_temple = false
|
||||||
local chunk_has_igloo = false
|
local chunk_has_igloo = false
|
||||||
|
|
|
@ -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_structures
|
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds
|
||||||
optional_depends = mclx_core, mcl_cocoas, mcl_sponges, mcl_ocean, mcl_stairs, mcl_monster_eggs
|
optional_depends = mclx_core, mcl_cocoas, mcl_sponges, mcl_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures
|
||||||
|
|
Loading…
Reference in New Issue