mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16: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)
|
mods := loadMods(index)
|
||||||
i := 0
|
i := 0
|
||||||
// Filter mods by side/optional
|
// Filter mods by side
|
||||||
|
// TODO: opt-in optional disabled filtering?
|
||||||
for _, mod := range mods {
|
for _, mod := range mods {
|
||||||
if len(mod.Side) == 0 || mod.Side == side || mod.Side == "both" || side == "both" {
|
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
|
mods[i] = mod
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user