aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-18 15:41:09 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-18 15:41:09 +0200
commit792e103664e2a59b0e5c710582ad98cae4bb7a42 (patch)
tree56587277bcfee7f59e6c8a03fa24f9d50593d045 /src/main/java/at/hannibal2/skyhanni/events
parentbb6a64dadca09ac84feedda1923854f9482df455 (diff)
downloadskyhanni-792e103664e2a59b0e5c710582ad98cae4bb7a42.tar.gz
skyhanni-792e103664e2a59b0e5c710582ad98cae4bb7a42.tar.bz2
skyhanni-792e103664e2a59b0e5c710582ad98cae4bb7a42.zip
Reworked clickable error messages and added support for all custom event errors
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt4
1 files changed, 2 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 57410df5d..08234bdf1 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
@@ -1,6 +1,6 @@
package at.hannibal2.skyhanni.events
-import at.hannibal2.skyhanni.SkyHanniMod
+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
@@ -19,7 +19,7 @@ abstract class LorenzEvent : Event() {
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 ${SkyHanniMod.version} caught and logged an ${it::class.simpleName ?: "error"} at ${eventName}: ${it.message}")
+ CopyErrorCommand.logError(it, "Caught an ${it::class.simpleName ?: "error"} at ${eventName}: '${it.message}'")
}
}.getOrDefault(isCanceled)
}