aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-15 14:04:05 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-15 14:04:05 +0100
commit893b98ebd6269fd8c23b882cdab02147457f4bee (patch)
treea859080e0cdfa126ce06de1386fc5636bd97c244 /src/main/java/at/hannibal2/skyhanni/features
parentd091756ac7696e2c5880a3edabcb36deeca8333f (diff)
downloadskyhanni-893b98ebd6269fd8c23b882cdab02147457f4bee.tar.gz
skyhanni-893b98ebd6269fd8c23b882cdab02147457f4bee.tar.bz2
skyhanni-893b98ebd6269fd8c23b882cdab02147457f4bee.zip
better error handling
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt6
1 files changed, 3 insertions, 3 deletions
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
+}