aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-06 00:16:39 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-06 00:16:39 +0200
commit1806a21ae3c45252923f0aa61cb4d5983f653f71 (patch)
treeab03a619a507be34697f2783a96d352f0d5defdd
parente409d45f82dc4a7aa87d50d0f50d784968fe6184 (diff)
downloadskyhanni-1806a21ae3c45252923f0aa61cb4d5983f653f71.tar.gz
skyhanni-1806a21ae3c45252923f0aa61cb4d5983f653f71.tar.bz2
skyhanni-1806a21ae3c45252923f0aa61cb4d5983f653f71.zip
removed unnecessary NoSuchMethodError hider
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
index 0b6178399..a4d24e0dc 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
@@ -1,7 +1,6 @@
package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.test.command.CopyErrorCommand
-import at.hannibal2.skyhanni.utils.LorenzUtils
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.fml.common.eventhandler.Event
@@ -15,11 +14,10 @@ abstract class LorenzEvent : Event() {
return runCatching {
MinecraftForge.EVENT_BUS.post(this)
}.onFailure {
- 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 {
- CopyErrorCommand.logError(it, "Caught an ${it::class.simpleName ?: "error"} at ${eventName}: '${it.message}'")
- }
+ CopyErrorCommand.logError(
+ it,
+ "Caught an ${it::class.simpleName ?: "error"} at ${eventName}: '${it.message}'"
+ )
}.getOrDefault(isCanceled)
}
} \ No newline at end of file