diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-11 03:39:43 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-11 03:39:43 +0100 |
commit | b34633e180b467536a6540c2af470846bdc83004 (patch) | |
tree | c7f72dec218a590232856f1b559e083764ccbfc1 /src | |
parent | 1be9fb17389049c04e76735c78cb738949f6e252 (diff) | |
download | skyhanni-b34633e180b467536a6540c2af470846bdc83004.tar.gz skyhanni-b34633e180b467536a6540c2af470846bdc83004.tar.bz2 skyhanni-b34633e180b467536a6540c2af470846bdc83004.zip |
Added reminder about outdated neu versions on NoSuchMethodError errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt | 8 |
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 |