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

Commit 6ce1077

Browse files
committed
Remove SemVer4J and remove comparable
Signed-off-by: DeathsGun <deathsgun@protonmail.com>
1 parent 3f060e5 commit 6ce1077

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ dependencies {
4545

4646
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
4747
modImplementation "com.terraformersmc:modmenu:${project.modmenu_version}"
48-
49-
implementation "com.vdurmont:semver4j:3.1.0"
5048

5149
testImplementation "org.jetbrains.kotlin:kotlin-test:1.5.21"
5250
}

src/main/kotlin/xyz/deathsgun/modmanager/api/mod/Version.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,4 @@ data class Version(
2525
val type: VersionType,
2626
val gameVersions: List<String>,
2727
val assets: List<Asset>
28-
) : Comparable<Version> {
29-
override fun compareTo(other: Version): Int {
30-
return Comparator.comparing { v: Version -> v.version }
31-
.thenComparing { v -> v.releaseDate }.compare(this, other)
32-
}
33-
34-
}
28+
)

0 commit comments

Comments
 (0)