mcl_mapgen_core: Make mcl_farming an optional dependency.

mcl_farming was previously an undeclared dependency of mcl_mapgen_core.
Now it is both optional and declared.
This commit is contained in:
Daniel Cassidy 2022-01-06 02:33:04 +00:00
parent 1d03a3d150
commit 554f22b802
2 changed files with 42 additions and 40 deletions

View File

@ -843,6 +843,7 @@ local function register_mgv6_decorations()
})
end
if minetest.get_modpath("mcl_farming") then
-- Pumpkin
minetest.register_decoration({
deco_type = "simple",
@ -883,6 +884,7 @@ local function register_mgv6_decorations()
y_max = 40,
decoration = "mcl_farming:melon",
})
end
-- Tall grass
if minetest.get_modpath("mcl_flowers") then

View File

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