mcl_mapgen_core: Make mcl_ocean an optional dependency.

This commit is contained in:
Daniel Cassidy 2022-01-05 21:34:56 +00:00
parent 012d0bd942
commit b73c0e8f2c
2 changed files with 91 additions and 90 deletions

View File

@ -906,6 +906,7 @@ local function register_mgv6_decorations()
})
-- Seagrass and kelp
if minetest.get_modpath("mcl_ocean") then
local materials = {"dirt","sand"}
for i=1, #materials do
local mat = materials[i]
@ -995,7 +996,7 @@ local function register_mgv6_decorations()
param2 = 32,
param2_max = 160,
})
end
end
-- Wet Sponge

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_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures
optional_depends = mclx_core, mcl_cocoas, mcl_sponges
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds, mcl_stairs, mcl_monster_eggs, mcl_structures
optional_depends = mclx_core, mcl_cocoas, mcl_sponges, mcl_ocean