From e6b2bcbcdb17f729ead84fd2a2d5d8c0dc6eebc3 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 6 Jul 2024 10:28:43 +0200 Subject: added debugs --- src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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() + } } -- cgit