aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 14:38:30 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 14:38:30 +0100
commitf610573774ffbea50413c459ba8a2167dd5fe74f (patch)
tree5ff03a3ed1166a1cf117b17e04817aeb63ce3366 /src/main/java
parentf1fc5b97c776884a5a10a6bcc4d033fa3d726e23 (diff)
downloadskyhanni-f610573774ffbea50413c459ba8a2167dd5fe74f.tar.gz
skyhanni-f610573774ffbea50413c459ba8a2167dd5fe74f.tar.bz2
skyhanni-f610573774ffbea50413c459ba8a2167dd5fe74f.zip
Fixed money per hour not loading sometimes
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt6
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
}