1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Use virtual paths to specify exact mod to enable (#11784)

This commit is contained in:
rubenwardy
2022-01-30 22:40:53 +00:00
committed by GitHub
parent 8c0331d244
commit 128f6359e9
11 changed files with 223 additions and 80 deletions

View File

@@ -378,7 +378,7 @@ local function parse_config_file(read_all, parse_mods)
-- Parse mods
local mods_category_initialized = false
local mods = {}
get_mods(core.get_modpath(), mods)
get_mods(core.get_modpath(), "mods", mods)
for _, mod in ipairs(mods) do
local path = mod.path .. DIR_DELIM .. FILENAME
local file = io.open(path, "r")