From 190e9ca2e4b64de7e1b19086a7bcb457b46eb5dc Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 24 May 2024 16:13:55 +0200 Subject: help finding the error --- src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt index 97cab2c33..5ef2b76b4 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt @@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.events.HypixelJoinEvent import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.events.ProfileJoinEvent import at.hannibal2.skyhanni.events.TabListUpdateEvent +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.HypixelCommands import at.hannibal2.skyhanni.utils.LorenzUtils @@ -35,12 +36,10 @@ object ProfileStorageData { val playerSpecific = playerSpecific val sackPlayers = sackPlayers if (playerSpecific == null) { - ChatUtils.error("playerSpecific is null in ProfileJoinEvent!") - return + ErrorManager.skyHanniError("playerSpecific is null in ProfileJoinEvent!") } if (sackPlayers == null) { - ChatUtils.error("sackPlayers is null in ProfileJoinEvent!") - return + ErrorManager.skyHanniError("sackPlayers is null in ProfileJoinEvent!") } val profileName = event.name -- cgit