Skip to content

Commit

Permalink
fix: also parse mod id lines starting with ModID:
Browse files Browse the repository at this point in the history
  • Loading branch information
kldzj committed May 13, 2023
1 parent b0dd55a commit 7c289fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions steam/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func (w *WorkshopItem) Parse() *ParsedWorkshopItem {
line = strings.TrimSpace(line)
if strings.HasPrefix(line, "Mod ID: ") {
mods = append(mods, strings.TrimPrefix(line, "Mod ID: "))
} else if strings.HasPrefix(line, "ModID: ") {
mods = append(mods, strings.TrimPrefix(line, "ModID: "))
} else if strings.HasPrefix(line, "Map Folder: ") {
maps = append(maps, strings.TrimPrefix(line, "Map Folder: "))
}
Expand Down

0 comments on commit 7c289fe

Please sign in to comment.