Remove optional disabled filtering from CurseForge packs (uses "required" flag)

This commit is contained in:
comp500 2021-12-27 01:28:53 +00:00
parent 492340dfe6
commit 00e647fb4b

View File

@ -64,12 +64,10 @@ var exportCmd = &cobra.Command{
mods := loadMods(index)
i := 0
// Filter mods by side/optional
// Filter mods by side
// TODO: opt-in optional disabled filtering?
for _, mod := range mods {
if len(mod.Side) == 0 || mod.Side == side || mod.Side == "both" || side == "both" {
if mod.Option != nil && mod.Option.Optional && !mod.Option.Default {
continue
}
mods[i] = mod
i++
}