mcl_mapgen_core: Make mcl_sponges an optional dependency.

This commit is contained in:
Daniel Cassidy 2022-01-05 20:52:53 +00:00
parent c52f598e64
commit 012d0bd942
2 changed files with 23 additions and 21 deletions

View File

@ -1000,6 +1000,7 @@ local function register_mgv6_decorations()
-- Wet Sponge
-- TODO: Remove this when we got ocean monuments
if minetest.get_modpath("mcl_cocoas") then
minetest.register_decoration({
deco_type = "simple",
decoration = "mcl_sponges:sponge_wet",
@ -1019,6 +1020,7 @@ local function register_mgv6_decorations()
y_min = mcl_vars.mg_lava_overworld_max + 5,
y_max = -20,
})
end
-- Add a small amount of tall grass everywhere to avoid areas completely empty devoid of tall grass
minetest.register_decoration({

View File

@ -1,5 +1,5 @@
name = mcl_mapgen_core
author = Wuzzy
description = The core of the MCL2 mapgen
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds, mcl_sponges, mcl_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures
optional_depends = mclx_core, mcl_cocoas
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds, mcl_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures
optional_depends = mclx_core, mcl_cocoas, mcl_sponges