aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-11 03:39:43 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-11 03:39:43 +0100
commit200e41dd8c85d24c3d0793bd43caaed726cc1969 (patch)
treec7f72dec218a590232856f1b559e083764ccbfc1
parent96e187cc5839c74725444dacdf854bdeebde568f (diff)
downloadSkyHanni-200e41dd8c85d24c3d0793bd43caaed726cc1969.tar.gz
SkyHanni-200e41dd8c85d24c3d0793bd43caaed726cc1969.tar.bz2
SkyHanni-200e41dd8c85d24c3d0793bd43caaed726cc1969.zip
Added reminder about outdated neu versions on NoSuchMethodError errors.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
index 95ce8823f..c499c3f34 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
@@ -38,8 +38,12 @@ abstract class LorenzEvent : Event() {
}
result
}.onFailure {
- it.printStackTrace()
- LorenzUtils.chat("§cSkyHanni caught and logged an ${it::class.simpleName ?: "error"} at ${eventName}.")
+ if (it is NoSuchMethodError) {
+ LorenzUtils.chat("§c[SkyHanni] You need to use a newer version of NotEnoughUpdates (alpha-11 or newer)! If you need help downloading it, go to the skyhanni discord.")
+ } else {
+ it.printStackTrace()
+ LorenzUtils.chat("§cSkyHanni caught and logged an ${it::class.simpleName ?: "error"} at ${eventName}.")
+ }
}.getOrDefault(isCanceled)
}
} \ No newline at end of file