From 200e41dd8c85d24c3d0793bd43caaed726cc1969 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 11 Mar 2023 03:39:43 +0100 Subject: Added reminder about outdated neu versions on NoSuchMethodError errors. --- src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt | 8 ++++++-- 1 file 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 -- cgit