aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-04-18 00:27:32 +1000
committerGitHub <noreply@github.com>2024-04-17 16:27:32 +0200
commit6a1163605a69235062b223729ddd32480cf257aa (patch)
tree5fd9fb3c0dab796db1248be42ecb93891eeca33a /src/main/java/at/hannibal2/skyhanni/utils
parent9a07b94246fbd7bd6e5bc1ac1c9d2c37b3bd7d7d (diff)
downloadskyhanni-6a1163605a69235062b223729ddd32480cf257aa.tar.gz
skyhanni-6a1163605a69235062b223729ddd32480cf257aa.tar.bz2
skyhanni-6a1163605a69235062b223729ddd32480cf257aa.zip
Fix: Catch correct error type on alpha 27 (#1462)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/CombatUtils.kt2
1 files changed, 1 insertions, 1 deletions
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
}