Skip to content

Commit

Permalink
lazy loading?
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Dec 25, 2024
1 parent 485b98c commit bdd12e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ class SkyHanniMod {

const val MODID = "skyhanni"

private val modVersion
get() = ModVersion.fromString(Loader.instance().indexedModList[MODID]!!.version)
private val modVersion: ModVersion by lazy {
ModVersion.fromString(Loader.instance().indexedModList[MODID]!!.version)
}

@JvmStatic
val version: String
Expand Down

0 comments on commit bdd12e9

Please sign in to comment.