Skip to content

Commit

Permalink
Major fix for manifest generation
Browse files Browse the repository at this point in the history
ProjectID & FileID (string) -> (int)
  • Loading branch information
Hextical committed Aug 9, 2019
1 parent d2a3dc7 commit fdb34f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions manifest-structures.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ type Manifest struct {
}

type CurrFile struct {
ProjectID string `json:"projectID"`
FileID string `json:"fileID"`
Required bool `json:"required"`
ProjectID int `json:"projectID"`
FileID int `json:"fileID"`
Required bool `json:"required"`
}

type Minecraft struct {
Expand Down
4 changes: 3 additions & 1 deletion manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func manifest(exportjson ExportJSON, x_map map[string][]string, manifestType str
var moddedFiles []CurrFile

for key, value := range x_map {
moddedFiles = append(moddedFiles, CurrFile{key, value[2], true})
keyInt, _ := strconv.Atoi(key)
valueInt, _ := strconv.Atoi(value[2])
moddedFiles = append(moddedFiles, CurrFile{keyInt, valueInt, true})
}

data := Manifest{
Expand Down

0 comments on commit fdb34f8

Please sign in to comment.