diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 14:38:30 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-23 14:38:30 +0100 |
commit | f610573774ffbea50413c459ba8a2167dd5fe74f (patch) | |
tree | 5ff03a3ed1166a1cf117b17e04817aeb63ce3366 /src/main/java/at | |
parent | f1fc5b97c776884a5a10a6bcc4d033fa3d726e23 (diff) | |
download | skyhanni-f610573774ffbea50413c459ba8a2167dd5fe74f.tar.gz skyhanni-f610573774ffbea50413c459ba8a2167dd5fe74f.tar.bz2 skyhanni-f610573774ffbea50413c459ba8a2167dd5fe74f.zip |
Fixed money per hour not loading sometimes
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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<String, ItemStack>() private val itemNameCache = mutableMapOf<String, String>() // item name -> internal name private val multiplierCache = mutableMapOf<String, Pair<String, Int>>() - private val recipesCache = mutableMapOf<String, List<NeuRecipe>>() + private val recipesCache = mutableMapOf<String, Set<NeuRecipe>>() fun getInternalName(itemName: String): String { if (itemNameCache.containsKey(itemName)) { @@ -161,11 +161,11 @@ object NEUItems { return result } - fun getRecipes(minionId: String): List<NeuRecipe> { + fun getRecipes(minionId: String): Set<NeuRecipe> { if (recipesCache.contains(minionId)) { return recipesCache[minionId]!! } - val recipes = manager.getAvailableRecipesFor(minionId) + val recipes = manager.getRecipesFor(minionId) recipesCache[minionId] = recipes return recipes } |