diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt index b81e1efb8..4059761c3 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt @@ -51,8 +51,7 @@ import kotlin.concurrent.fixedRateTimer typealias TrackerDisplayMode = SkyHanniTracker.DefaultDisplayMode private fun GsonBuilder.reigsterIfBeta(create: TypeAdapterFactory): GsonBuilder { - val isBeta = SkyHanniMod.version.contains("beta", ignoreCase = true) - return if (isBeta) { + return if (LorenzUtils.isBetaVersion()) { registerTypeAdapterFactory(create) } else this } |