Quilt support

This commit is contained in:
comp500
2022-04-20 20:58:49 +01:00
parent 9faf42c0a8
commit f1eb34d444
5 changed files with 30 additions and 19 deletions

View File

@@ -222,10 +222,11 @@ func getLoader(pack core.Pack) int {
dependencies := pack.Versions
_, hasFabric := dependencies["fabric"]
_, hasQuilt := dependencies["quilt"]
_, hasForge := dependencies["forge"]
if hasFabric && hasForge {
if (hasFabric || hasQuilt) && hasForge {
return modloaderTypeAny
} else if hasFabric {
} else if hasFabric || hasQuilt { // Backwards-compatible; for now (could be configurable later)
return modloaderTypeFabric
} else if hasForge {
return modloaderTypeForge