From 4bbc05eb43e4646c770723cee6bd55ffec1c2d93 Mon Sep 17 00:00:00 2001 From: calwolfson Date: Wed, 25 Dec 2024 08:44:09 -0500 Subject: [PATCH] fix crash x1 --- src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index e71a8d2d45f4..fe8c6398e08f 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -110,7 +110,11 @@ class SkyHanniMod { const val MODID = "skyhanni" private val forgeModVersion - get() = Loader.instance().indexedModList[MODID]!!.version + get() = run { + val a = Loader.instance().indexedModList[MODID]!!.version + println("Forge mod version: $a") + a + } private val modVersion = ModVersion.fromString(forgeModVersion)