Check if download URL is null instead of allowModDistribution; fixes issue with null values for latter

This commit is contained in:
comp500
2022-05-23 01:39:07 +01:00
parent bf2f060efc
commit e71b63ea98
2 changed files with 28 additions and 50 deletions

View File

@@ -145,9 +145,8 @@ type modInfo struct {
FileType int `json:"releaseType"`
Modloader int `json:"modLoader"`
} `json:"latestFilesIndexes"`
ModLoaders []string `json:"modLoaders"`
AllowModDistribution bool `json:"allowModDistribution"`
Links struct {
ModLoaders []string `json:"modLoaders"`
Links struct {
WebsiteURL string `json:"websiteUrl"`
} `json:"links"`
}