aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-19 01:04:09 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-19 01:04:09 +0100
commita9c2e9d5623359493a174d2d08bf003f9dcf9d67 (patch)
treef95d25800e494e5145a39dbc40d3050c6b73415b /src/main/java/at/hannibal2/skyhanni
parentb80e1e160a6adc7a80cb4bb34ab253f63d29cc83 (diff)
downloadskyhanni-a9c2e9d5623359493a174d2d08bf003f9dcf9d67.tar.gz
skyhanni-a9c2e9d5623359493a174d2d08bf003f9dcf9d67.tar.bz2
skyhanni-a9c2e9d5623359493a174d2d08bf003f9dcf9d67.zip
using ErrorManager more
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt7
2 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt
index 89a5e6a16..0ae9115eb 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt
@@ -17,6 +17,7 @@ import at.hannibal2.skyhanni.features.garden.GardenAPI
import at.hannibal2.skyhanni.features.garden.GardenAPI.addCropIcon
import at.hannibal2.skyhanni.features.garden.GardenAPI.getCropType
import at.hannibal2.skyhanni.features.garden.farming.GardenCropSpeed.setSpeed
+import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.addAsSingletonList
import at.hannibal2.skyhanni.utils.LorenzUtils.round
@@ -108,8 +109,7 @@ object GardenCropMilestoneDisplay {
}
cultivatingData[crop] = counter
} catch (e: Throwable) {
- LorenzUtils.error("Error in OwnInventoryItemUpdateEvent")
- e.printStackTrace()
+ ErrorManager.logError(e, "Updating crop counter by reading farming tool nbt data.")
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index 79b743996..7a3ddbf14 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -233,9 +233,10 @@ object NEUItems {
return multiplierCache[internalName]!!
}
if (tryCount == 10) {
- val message = "Error reading getMultiplier for item '$internalName'"
- Error(message).printStackTrace()
- LorenzUtils.error(message)
+ ErrorManager.logErrorState(
+ "Error grabbing recipe data",
+ "Error reading getMultiplier for item '$internalName'"
+ )
return Pair(internalName, 1)
}
for (recipe in getRecipes(internalName)) {