Fix Modrinth exports of external files with omitted side field

This commit is contained in:
comp500
2022-10-30 04:52:09 +00:00
parent f00dc9844f
commit 4f6528dcb5
3 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ var exportCmd = &cobra.Command{
// 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.Side == side || mod.Side == core.EmptySide || mod.Side == core.UniversalSide || side == core.UniversalSide {
mods[i] = mod
i++
}