mirror of
https://github.com/packwiz/packwiz.git
synced 2025-11-19 01:24:32 +01:00
Correctly handle import/export of .disabled (optional disabled) mods
This commit is contained in:
@@ -52,8 +52,9 @@ func (c cursePackMeta) Mods() []AddonFileReference {
|
||||
list := make([]AddonFileReference, len(c.Files))
|
||||
for i, v := range c.Files {
|
||||
list[i] = AddonFileReference{
|
||||
ProjectID: v.ProjectID,
|
||||
FileID: v.FileID,
|
||||
ProjectID: v.ProjectID,
|
||||
FileID: v.FileID,
|
||||
OptionalDisabled: !v.Required,
|
||||
}
|
||||
}
|
||||
return list
|
||||
|
||||
Reference in New Issue
Block a user