From 0dd5963b30522610991bc1f75b188d7c4f8266d5 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 7 Mar 2024 00:45:49 +0100 Subject: code cleanup --- .../at/hannibal2/skyhanni/features/minion/InfernoMinionFeatures.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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) { -- cgit