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/features/misc/ChestValue.kt | 4 ++-- .../at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt | 4 ++-- .../at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt | 4 ++-- .../hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 8 ++++---- .../at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt index 6d1aeb9cc..23d7af564 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ChestValue.kt @@ -10,7 +10,7 @@ import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryOpenEvent import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.features.misc.items.EstimatedItemValue -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.APIUtil import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull @@ -259,7 +259,7 @@ class ChestValue { json["storageGUI"].asJsonObject["enableStorageGUI3"].asBoolean } else false } catch (e: Exception) { - CopyErrorCommand.logError(e, "Could not read NEU config to determine if the neu storage is emabled.") + ErrorManager.logError(e, "Could not read NEU config to determine if the neu storage is emabled.") false } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt index ba71aeb9e..c94cecee9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt @@ -8,7 +8,7 @@ import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.events.PacketEvent import at.hannibal2.skyhanni.features.rift.RiftAPI -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.LorenzUtils @@ -164,7 +164,7 @@ class NonGodPotEffectDisplay { val duration = try { TimeUtils.getMillis(line.split("§f")[1]) } catch (e: IndexOutOfBoundsException) { - CopyErrorCommand.logError( + ErrorManager.logError( Exception("'§f' not found in line '$line'", e), "Error while reading Non God-Potion effects from tab list" ) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt index 31530d5ee..a18faef7c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/QuickModMenuSwitch.kt @@ -3,7 +3,7 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.LorenzTickEvent 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 at.hannibal2.skyhanni.utils.LorenzUtils.makeAccessible import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems @@ -176,7 +176,7 @@ object QuickModMenuSwitch { } } } catch (e: Exception) { - CopyErrorCommand.logError(e, "Error trying to open the gui for mod " + mod.name) + ErrorManager.logError(e, "Error trying to open the gui for mod " + mod.name) } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt index 0386300e6..f75b49bca 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt @@ -6,7 +6,7 @@ import at.hannibal2.skyhanni.events.ConfigLoadEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.RenderItemTooltipEvent -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName_old @@ -326,7 +326,7 @@ object EstimatedItemValue { if (stack.isRecombobulated()) { val oneBelow = itemRarity.oneBelow() if (oneBelow == null) { - CopyErrorCommand.logErrorState( + ErrorManager.logErrorState( "Wrong item rarity detected in estimated item value for item ${stack.name}", "Recombobulated item is common: ${stack.getInternalName()}, name:${stack.name}" ) @@ -338,7 +338,7 @@ object EstimatedItemValue { val rarityName = itemRarity.name if (!reforgeCosts.has(rarityName)) { val reforgesFound = reforgeCosts.entrySet().map { it.key } - CopyErrorCommand.logErrorState( + ErrorManager.logErrorState( "Can not calculate reforge cost for item ${stack.name}", "item rarity '$itemRarity' is not in NEU repo reforge cost for reforge stone$reforgeStone ($reforgesFound)" ) @@ -748,7 +748,7 @@ object EstimatedItemValue { if (gemstoneUnlockCosts.isEmpty()) return 0.0 if (internalName !in gemstoneUnlockCosts) { - CopyErrorCommand.logErrorState( + ErrorManager.logErrorState( "Could not find gemstone slot price for ${stack.name}", "EstimatedItemValue has no gemstoneUnlockCosts for $internalName" ) diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt index 9dbf257c4..e4d1133ba 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt @@ -13,7 +13,7 @@ import at.hannibal2.skyhanni.events.withAlpha import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper import at.hannibal2.skyhanni.test.GriffinUtils.drawWaypointFilled -import at.hannibal2.skyhanni.test.command.CopyErrorCommand +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import at.hannibal2.skyhanni.utils.LorenzColor import at.hannibal2.skyhanni.utils.LorenzUtils @@ -72,7 +72,7 @@ object TrevorFeatures { if (questActive) TrevorSolver.findMob() } } catch (error: Throwable) { - CopyErrorCommand.logError(error, "Encountered an error when updating the trapper solver") + ErrorManager.logError(error, "Encountered an error when updating the trapper solver") } } } -- cgit