aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-07 00:45:49 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-07 00:45:49 +0100
commit0dd5963b30522610991bc1f75b188d7c4f8266d5 (patch)
treea6b3fe0c3d4e6dfc02018be060be17c7a4de9110 /src/main
parent0a95a791eb57a546fb5421594abae740faf1dfdb (diff)
downloadskyhanni-0dd5963b30522610991bc1f75b188d7c4f8266d5.tar.gz
skyhanni-0dd5963b30522610991bc1f75b188d7c4f8266d5.tar.bz2
skyhanni-0dd5963b30522610991bc1f75b188d7c4f8266d5.zip
code cleanup
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) {