Manually replace FAPI deps with QFAPI/QSL when using Quilt (fixes #212)

This commit is contained in:
comp500
2023-04-13 16:45:10 +01:00
parent bfe570a6a2
commit bd71ad5679
4 changed files with 24 additions and 5 deletions

View File

@@ -426,3 +426,11 @@ func resolveVersion(project *modrinthApi.Project, version string) (*modrinthApi.
}
return nil, fmt.Errorf("unable to find version %s", version)
}
func mapDepOverride(depID string, isQuilt bool) string {
if isQuilt && (depID == "P7dR8mSH" || depID == "fabric-api") {
// Transform FAPI dependencies to QFAPI/QSL dependencies when using Quilt
return "qvIfYCYJ"
}
return depID
}