Skip to content

Commit

Permalink
fix crash x2
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Dec 25, 2024
1 parent 4bbc05e commit 8487edc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,19 @@ class SkyHanniMod {
private val forgeModVersion
get() = run {
val a = Loader.instance().indexedModList[MODID]!!.version
println("Forge mod version: $a")
println("Forge mod version 2: $a")
a
}

private val modVersion = ModVersion.fromString(forgeModVersion)

@JvmStatic
val version: String
get() = modVersion.asString
get() = run {
val a = Loader.instance().indexedModList[MODID]!!.version
println("Forge mod version 2: $a")
a
}

val isBetaVersion: Boolean
get() = modVersion.isBeta
Expand Down

0 comments on commit 8487edc

Please sign in to comment.