mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 13:06:30 +02:00
Remove optional disabled filtering from CurseForge packs (uses "required" flag)
This commit is contained in:
parent
492340dfe6
commit
00e647fb4b
@ -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++
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user