aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/InfernoMinionFeatures.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/InfernoMinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/InfernoMinionFeatures.kt
index c07c351d2..388941263 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/InfernoMinionFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/InfernoMinionFeatures.kt
@@ -47,7 +47,7 @@ class InfernoMinionFeatures {
if (!inInventory) return
val containsFuel =
- NEUInternalName.fromItemNameOrNull(event.container.getSlot(19).stack.name.toString()) in fuelItemIds
+ NEUInternalName.fromItemNameOrNull(event.container.getSlot(19).stack.name) in fuelItemIds
if (!containsFuel) return
if (event.slot?.slotNumber == 19 || event.slot?.slotNumber == 53) {
@@ -61,7 +61,7 @@ class InfernoMinionFeatures {
if (!config.infernoFuelBlocker) return
if (!inInventory) return
- val containsFuel = NEUInternalName.fromItemNameOrNull(event.itemStack.name.toString()) in fuelItemIds
+ val containsFuel = NEUInternalName.fromItemNameOrNull(event.itemStack.name) in fuelItemIds
if (!containsFuel) return
if (event.slot.slotNumber == 19) {