From 893b98ebd6269fd8c23b882cdab02147457f4bee Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:04:05 +0100 Subject: better error handling --- .../java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt index d5c279fc9..79e15eed8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt @@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.InventoryCloseEvent import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent import at.hannibal2.skyhanni.features.garden.visitor.VisitorAPI +import at.hannibal2.skyhanni.test.command.ErrorManager import at.hannibal2.skyhanni.utils.ItemUtils import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName import at.hannibal2.skyhanni.utils.ItemUtils.getLore @@ -56,8 +57,7 @@ class AnitaMedalProfit { try { readItem(item, table) } catch (e: Throwable) { - LorenzUtils.error("Error in AnitaMedalProfit while reading item '$item'") - e.printStackTrace() + ErrorManager.logError(e, "Error in AnitaMedalProfit while reading item '$item'") } } @@ -153,4 +153,4 @@ class AnitaMedalProfit { event.move(3,"garden.anitaMedalProfitEnabled", "garden.anitaShop.medalProfitEnabled") event.move(3,"garden.anitaMedalProfitPos", "garden.anitaShop.medalProfitPos") } -} \ No newline at end of file +} -- cgit