aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 22:41:29 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 22:41:29 +0200
commit22002f2df339e794b86871850354fdb211176401 (patch)
tree224af974ef5886889ae3997df5c8f4b736be410f /src/main/java/at/hannibal2/skyhanni
parentf02e97e044bf6ab1dde5746952ec1dab92b22ed7 (diff)
downloadskyhanni-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')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bingo/MinionCraftHelper.kt4
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)
}