mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-12-25 02:10:37 +01:00
update depends in mod.conf
This commit is contained in:
parent
1f76d53535
commit
8a0d4d0c56
@ -38,16 +38,19 @@ dofile(modpath.."/nodes.lua")
|
|||||||
dofile(modpath.."/misc.lua")
|
dofile(modpath.."/misc.lua")
|
||||||
dofile(modpath.."/mapgen.lua")
|
dofile(modpath.."/mapgen.lua")
|
||||||
|
|
||||||
local mods_required = ""
|
local list_mods_required = function()
|
||||||
local mods_sorted = {}
|
local mods_required = ""
|
||||||
for mod, _ in pairs(df_dependencies.mods_required) do
|
local mods_sorted = {}
|
||||||
table.insert(mods_sorted, mod)
|
for mod, _ in pairs(df_dependencies.mods_required) do
|
||||||
|
table.insert(mods_sorted, mod)
|
||||||
|
end
|
||||||
|
table.sort(mods_sorted)
|
||||||
|
for _, mod in ipairs(mods_sorted) do
|
||||||
|
mods_required = mods_required .. ", " .. mod
|
||||||
|
end
|
||||||
|
minetest.debug(mods_required)
|
||||||
end
|
end
|
||||||
table.sort(mods_sorted)
|
list_mods_required()
|
||||||
for _, mod in ipairs(mods_sorted) do
|
|
||||||
mods_required = mods_required .. ", " .. mod
|
|
||||||
end
|
|
||||||
--minetest.debug(mods_required)
|
|
||||||
|
|
||||||
-- This mod is meant to only exist at initialization time. Other mods should make copies of anything it points to for their own use.
|
-- This mod is meant to only exist at initialization time. Other mods should make copies of anything it points to for their own use.
|
||||||
minetest.after(1, function() df_dependencies = nil end)
|
minetest.after(1, function() df_dependencies = nil end)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name = df_dependencies
|
name = df_dependencies
|
||||||
description = A utility mod for df_caverns that gathers all dependencies on minetest_game in one place, to ease compatibility efforts with mineclone and other such games
|
description = A utility mod for df_caverns that gathers all dependencies on minetest_game in one place, to ease cross-compatibility efforts with Minetest Game, MineClone2 and MineClone5.
|
||||||
depends =
|
depends =
|
||||||
optional_depends = beds, bucket, default, doors, farming, fireflies, mcl_beds, mcl_buckets, mcl_chests, mcl_compatibility, mcl_copper, mcl_core, mcl_doors, mcl_explosions, mcl_farming, mcl_fences, mcl_furnaces, mcl_init, mcl_mapgen, mcl_mobitems, mcl_ocean, mcl_potions, mcl_sounds, mcl_stairs, mcl_strongholds, mcl_tnt, mcl_torches, mcl_wool, mcl_worlds, mclx_core, mesecons, moreblocks, stairs, tnt, vessels, wool
|
optional_depends = beds, bucket, default, doors, farming, fireflies, mcl_beds, mcl_buckets, mcl_chests, mcl_compatibility, mcl_copper, mcl_core, mcl_doors, mcl_explosions, mcl_farming, mcl_fences, mcl_formspec, mcl_furnaces, mcl_init, mcl_mapgen, mcl_mobitems, mcl_ocean, mcl_potions, mcl_sounds, mcl_stairs, mcl_strongholds, mcl_tnt, mcl_torches, mcl_wool, mcl_worlds, mclx_core, mesecons, moreblocks, stairs, tnt, vessels, wool
|
Loading…
Reference in New Issue
Block a user