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

Commit 4d5534a

Browse files
committed
Don't add forge versions
Closes #56 Signed-off-by: DeathsGun <deathsgun@protonmail.com>
1 parent d23b285 commit 4d5534a

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)