From 00e647fb4b6f35bab22d23b986d6f20c60280fab Mon Sep 17 00:00:00 2001 From: comp500 Date: Mon, 27 Dec 2021 01:28:53 +0000 Subject: [PATCH] Remove optional disabled filtering from CurseForge packs (uses "required" flag) --- curseforge/export.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/curseforge/export.go b/curseforge/export.go index 29299df..6a9e326 100644 --- a/curseforge/export.go +++ b/curseforge/export.go @@ -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++ }