From e9ec7461cb29b9673619204891243f1fb7e3e175 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 13 May 2023 01:44:33 +0200 Subject: Adding version text to error messages --- src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt index 400c312fb..57410df5d 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.events +import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.utils.LorenzUtils import net.minecraftforge.common.MinecraftForge import net.minecraftforge.fml.common.eventhandler.Event @@ -18,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 caught and logged an ${it::class.simpleName ?: "error"} at ${eventName}.") + LorenzUtils.chat("§cSkyHanni ${SkyHanniMod.version} caught and logged an ${it::class.simpleName ?: "error"} at ${eventName}: ${it.message}") } }.getOrDefault(isCanceled) } -- cgit