aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index 5edc227dd..3a60dd3f4 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -423,9 +423,13 @@ object ItemUtils {
return neededItems
}
- fun getRecipePrice(recipe: NeuRecipe): Double =
- neededItems(recipe).map {
+ // TODO remove debugs once stack overflow is found
+ fun getRecipePrice(recipe: NeuRecipe): Double {
+ println("getRecipePrice ${recipe.title}")
+ return neededItems(recipe).map {
+ println("ingredient: ${it.key}")
it.key.getPrice() * it.value
}.sum()
+ }
}