Support mods requiring different versions of the same mod. Resources from transitive dependencies should not added the mod resource map #3302 (#3303)

This commit is contained in:
kaidaguerre
2023-04-04 15:08:27 +01:00
committed by GitHub
parent 33cfeacaff
commit dd08d9d8a4
24 changed files with 388 additions and 257 deletions

View File

@@ -225,8 +225,8 @@ func ParseMod(fileData map[string][]byte, pseudoResources []modconfig.MappableRe
prevUnresolvedBlocks = unresolvedBlocks
}
// now tell mod to build tree of controls.
res.Error = mod.BuildResourceTree(parseCtx.LoadedDependencyMods)
// now tell mod to build tree of resources
res.Error = mod.BuildResourceTree(parseCtx.GetTopLevelDependencyMods())
return mod, res
}