From 6a1163605a69235062b223729ddd32480cf257aa Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Thu, 18 Apr 2024 00:27:32 +1000 Subject: Fix: Catch correct error type on alpha 27 (#1462) --- src/main/java/at/hannibal2/skyhanni/utils/CombatUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/CombatUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/CombatUtils.kt index 362654807..5edd33bc0 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/CombatUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/CombatUtils.kt @@ -30,7 +30,7 @@ object CombatUtils { return try { val a = xpInformation as? MixinXPInformation a!!.getTotalXp().toFloat() - } catch (e: Exception) { + } catch (e: Error) { val xpInfo = xpInformation ?: return -1f xpInfo.totalXp } -- cgit