Skip to content

Commit

Permalink
fix unity
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Jan 8, 2025
1 parent e67960d commit e0704a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func ParseDuration(s string) (time.Duration, error) {
return sumDur, nil
}

func loadAlmanaxData(version string) ([]mapping.MappedMultilangNPCAlmanax, error) {
func loadAlmanaxData(version string) ([]mapping.MappedMultilangNPCAlmanaxUnity, error) {
client := github.NewClient(nil)

repRel, _, err := client.Repositories.GetReleaseByTag(context.Background(), DataRepoOwner, DataRepoName, version)
Expand Down Expand Up @@ -141,7 +141,7 @@ func loadAlmanaxData(version string) ([]mapping.MappedMultilangNPCAlmanax, error

defer asset.Close()

var almData []mapping.MappedMultilangNPCAlmanax
var almData []mapping.MappedMultilangNPCAlmanaxUnity
dec := json.NewDecoder(asset)
err = dec.Decode(&almData)
if err != nil {
Expand All @@ -151,7 +151,7 @@ func loadAlmanaxData(version string) ([]mapping.MappedMultilangNPCAlmanax, error
return almData, nil
}

func updateAlmanaxRelease(almData []mapping.MappedMultilangNPCAlmanax, version string, ghToken string) error {
func updateAlmanaxRelease(almData []mapping.MappedMultilangNPCAlmanaxUnity, version string, ghToken string) error {
client := github.NewClient(nil).WithAuthToken(ghToken)

repRel, _, err := client.Repositories.GetReleaseByTag(context.Background(), DataRepoOwner, DataRepoName, version)
Expand Down

0 comments on commit e0704a6

Please sign in to comment.