diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-07-06 10:28:43 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-07-06 10:28:43 +0200 |
commit | e6b2bcbcdb17f729ead84fd2a2d5d8c0dc6eebc3 (patch) | |
tree | 636bf7456214099850318ec2dc1691a50fd298b9 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | d6358620457236f01ac32e9d5c406c9632b05369 (diff) | |
download | skyhanni-e6b2bcbcdb17f729ead84fd2a2d5d8c0dc6eebc3.tar.gz skyhanni-e6b2bcbcdb17f729ead84fd2a2d5d8c0dc6eebc3.tar.bz2 skyhanni-e6b2bcbcdb17f729ead84fd2a2d5d8c0dc6eebc3.zip |
added debugs
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt | 8 |
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() + } } |