From d534f73b63578d384c7a69462ca18cf0883926f5 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Fri, 21 Jun 2024 07:39:24 +1000 Subject: Backend: Remove deprecated function ChatUtils.error (#2021) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../skyhanni/features/event/diana/InquisitorWaypointShare.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/event') diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt index d9539fe15..e9e4ebd5a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/InquisitorWaypointShare.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.SecondPassedEvent import at.hannibal2.skyhanni.events.diana.InquisitorFoundEvent import at.hannibal2.skyhanni.events.minecraft.packet.PacketReceivedEvent import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.CollectionUtils.editCopy import at.hannibal2.skyhanni.utils.EntityUtils @@ -49,7 +50,7 @@ object InquisitorWaypointShare { "(?§9Party §8> )?(?.+)§f: §rx: (?[^ ,]+),? y: (?[^ ,]+),? z: (?[^ ,]+)" ) - //Support for https://www.chattriggers.com/modules/v/inquisitorchecker + // Support for https://www.chattriggers.com/modules/v/inquisitorchecker /** * REGEX-TEST: §9Party §8> UserName§f: §rA MINOS INQUISITOR has spawned near [Foraging Island ] at Coords 1 2 3 */ @@ -108,7 +109,7 @@ object InquisitorWaypointShare { inquisitorsNearby = emptyList() } - val inquisitorTime = mutableListOf() + private val inquisitorTime = mutableListOf() @HandleEvent fun onInquisitorFound(event: InquisitorFoundEvent) { @@ -194,14 +195,13 @@ object InquisitorWaypointShare { HypixelCommands.partyChat("Inquisitor dead!") } - fun sendInquisitor() { + private fun sendInquisitor() { if (!isEnabled()) return if (lastShareTime.passedSince() < 5.seconds) return lastShareTime = SimpleTimeMark.now() if (inquisitor == -1) { - ChatUtils.error("No Inquisitor Found!") - return + ErrorManager.skyHanniError("No Inquisitor Found!") } val inquisitor = EntityUtils.getEntityByID(inquisitor) -- cgit