aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-21 07:39:24 +1000
committerGitHub <noreply@github.com>2024-06-20 23:39:24 +0200
commitd534f73b63578d384c7a69462ca18cf0883926f5 (patch)
tree80e21e1f0ec41c5dee47712c5d2144281afeb0e7 /src/main/java/at/hannibal2/skyhanni/events
parent6410dcf999a08d4b6625fdc25f2db148c9df8338 (diff)
downloadskyhanni-d534f73b63578d384c7a69462ca18cf0883926f5.tar.gz
skyhanni-d534f73b63578d384c7a69462ca18cf0883926f5.tar.bz2
skyhanni-d534f73b63578d384c7a69462ca18cf0883926f5.zip
Backend: Remove deprecated function ChatUtils.error (#2021)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
index f957b75ff..f5566e278 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
@@ -1,11 +1,13 @@
package at.hannibal2.skyhanni.events
+import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.data.EventCounter
import at.hannibal2.skyhanni.mixins.hooks.getValue
import at.hannibal2.skyhanni.mixins.hooks.setValue
import at.hannibal2.skyhanni.mixins.transformers.AccessorEventBus
import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.ChatUtils
+import at.hannibal2.skyhanni.utils.chat.Text
import at.hannibal2.skyhanni.utils.system.PlatformUtils
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.fml.common.eventhandler.Event
@@ -60,7 +62,11 @@ abstract class LorenzEvent : Event() {
eventHandlerDepth--
if (errors > visibleErrors) {
val hiddenErrors = errors - visibleErrors
- ChatUtils.error("$hiddenErrors more errors in $eventName are hidden!")
+ ChatUtils.chat(
+ Text.text(
+ "§c[SkyHanni-${SkyHanniMod.version}] $hiddenErrors more errors in $eventName are hidden!",
+ ),
+ )
}
return if (isCancelable) isCanceled else false
}