mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-21 08:54:32 +02:00
Fix crash with new CurseForge metadata (added NeoForge)
This commit is contained in:
@@ -253,7 +253,7 @@ func filterLoaderTypeIndex(packLoaders []string, modLoaderType modloaderType) (m
|
||||
// No loaders are specified: allow all files
|
||||
return modloaderTypeAny, true
|
||||
} else {
|
||||
if slices.Contains(packLoaders, modloaderIds[modLoaderType]) {
|
||||
if int(modLoaderType) < len(modloaderIds) && slices.Contains(packLoaders, modloaderIds[modLoaderType]) {
|
||||
// Pack contains this loader, pass through
|
||||
return modLoaderType, true
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user