From 7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 14 Oct 2023 16:27:10 +0200 Subject: renamed CopyErrorCommand to ErrorManager --- src/main/java/at/hannibal2/skyhanni/data/FriendAPI.kt | 4 ++-- src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt | 4 ++-- src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/data') diff --git a/src/main/java/at/hannibal2/skyhanni/data/FriendAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/FriendAPI.kt index a9e5da9b5..26a4046dd 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/FriendAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/FriendAPI.kt @@ -3,7 +3,7 @@ package at.hannibal2.skyhanni.data import at.hannibal2.skyhanni.config.ConfigManager import at.hannibal2.skyhanni.events.HypixelJoinEvent import at.hannibal2.skyhanni.events.LorenzChatEvent -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.StringUtils.cleanPlayerName import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher @@ -114,7 +114,7 @@ class FriendAPI { try { UUID.fromString(it) } catch (e: IllegalArgumentException) { - CopyErrorCommand.logError(e, "Error reading friend list.") + ErrorManager.logError(e, "Error reading friend list.") return } } diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt index 21102c934..ed35272cd 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt @@ -3,7 +3,7 @@ package at.hannibal2.skyhanni.data.repo import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.config.ConfigManager import at.hannibal2.skyhanni.events.RepositoryReloadEvent -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.LorenzUtils import com.google.gson.JsonObject import net.minecraft.client.Minecraft @@ -128,7 +128,7 @@ class RepoManager(private val configLocation: File) { LorenzUtils.chat("§e[SkyHanni] §a$answerMessage") } } catch (e: java.lang.Exception) { - CopyErrorCommand.logError(e, "Error reading repo data!") + ErrorManager.logError(e, "Error reading repo data!") } } return comp diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt index 4b2466a96..6e49b53d3 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoUtils.kt @@ -1,6 +1,6 @@ package at.hannibal2.skyhanni.data.repo -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import com.google.gson.Gson import java.io.BufferedReader import java.io.File @@ -88,7 +88,7 @@ object RepoUtils { val jsonFile = File(repo, "constants/$constant.json") if (!jsonFile.isFile) { - CopyErrorCommand.logError( + ErrorManager.logError( Error("File '$jsonFile' not found!"), "File in repo missing! ($jsonFile). Try §e/shupdaterepo" ) -- cgit