Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 8f41558

Browse files
authored
Merge pull request #59 from DeathsGun/bugs/56_remove_forge_versions
Don't add forge versions
2 parents 1d293c8 + 4d5534a commit 8f41558

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/main/kotlin/xyz/deathsgun/modmanager/providers/modrinth

src/main/kotlin/xyz/deathsgun/modmanager/providers/modrinth/Modrinth.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ class Modrinth : IModProvider, IModUpdateProvider {
200200
val modrinthVersions = json.decodeFromString<List<ModrinthVersion>>(response.body())
201201
val versions = ArrayList<Version>()
202202
for (modVersion in modrinthVersions) {
203+
if (!modVersion.loaders.contains("fabric")) {
204+
continue
205+
}
203206
val assets = ArrayList<Asset>()
204207
for (file in modVersion.files) {
205208
assets.add(Asset(file.url, file.filename, file.hashes, file.primary))

0 commit comments

Comments
 (0)