diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-05 22:41:29 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-06-05 22:41:29 +0200 |
commit | 22002f2df339e794b86871850354fdb211176401 (patch) | |
tree | 224af974ef5886889ae3997df5c8f4b736be410f /src/main/java/at/hannibal2/skyhanni/features/bingo | |
parent | f02e97e044bf6ab1dde5746952ec1dab92b22ed7 (diff) | |
download | skyhanni-22002f2df339e794b86871850354fdb211176401.tar.gz skyhanni-22002f2df339e794b86871850354fdb211176401.tar.bz2 skyhanni-22002f2df339e794b86871850354fdb211176401.zip |
Fixed bingo minion craft helper detecting crafted minions from crafted minions inventory
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bingo')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt index 62077f08c..3083f6414 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt @@ -90,7 +90,7 @@ class MinionCraftHelper { tierOneMinionsDone.clear() } - private fun loadFromInventory(mainInventory: Array<ItemStack>): Pair<MutableMap<String, String>, MutableMap<String, Int>> { + private fun loadFromInventory(mainInventory: Array<ItemStack?>): Pair<MutableMap<String, String>, MutableMap<String, Int>> { init() val minions = mutableMapOf<String, String>() @@ -277,7 +277,7 @@ class MinionCraftHelper { val name = b.name ?: continue if (!name.startsWith("§e")) continue - val internalName = NEUItems.getInternalName("$name I") + val internalName = NEUItems.getInternalName("$name I").replace("MINION", "GENERATOR").replace(";", "_") if (!tierOneMinionsDone.contains(internalName)) { tierOneMinionsDone.add(internalName) } |