From f610573774ffbea50413c459ba8a2167dd5fe74f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 23 Mar 2023 14:38:30 +0100 Subject: Fixed money per hour not loading sometimes --- src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index bd0ac8cb0..8de57f642 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -17,7 +17,7 @@ object NEUItems { private val itemCache = mutableMapOf() private val itemNameCache = mutableMapOf() // item name -> internal name private val multiplierCache = mutableMapOf>() - private val recipesCache = mutableMapOf>() + private val recipesCache = mutableMapOf>() fun getInternalName(itemName: String): String { if (itemNameCache.containsKey(itemName)) { @@ -161,11 +161,11 @@ object NEUItems { return result } - fun getRecipes(minionId: String): List { + fun getRecipes(minionId: String): Set { if (recipesCache.contains(minionId)) { return recipesCache[minionId]!! } - val recipes = manager.getAvailableRecipesFor(minionId) + val recipes = manager.getRecipesFor(minionId) recipesCache[minionId] = recipes return recipes } -- cgit