mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-18 00:04:32 +02:00
Manually replace FAPI deps with QFAPI/QSL when using Quilt (fixes #212)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user