From 1382f4fc3651701fafbbdb4a74cd633543727b5a Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Sun, 23 Feb 2025 09:59:02 +0100 Subject: fix: Forge Detection logging if you don't have the required items. --- mod/src/main/kotlin/moe/nea/ledger/modules/ForgeDetection.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'mod/src/main/kotlin/moe/nea/ledger') diff --git a/mod/src/main/kotlin/moe/nea/ledger/modules/ForgeDetection.kt b/mod/src/main/kotlin/moe/nea/ledger/modules/ForgeDetection.kt index 95811ed..0b81ccf 100644 --- a/mod/src/main/kotlin/moe/nea/ledger/modules/ForgeDetection.kt +++ b/mod/src/main/kotlin/moe/nea/ledger/modules/ForgeDetection.kt @@ -21,6 +21,7 @@ class ForgeDetection { val slot = event.slotIn ?: return val clickedItem = slot.stack ?: return if (clickedItem.displayName.unformattedString() != "Confirm") return + if (clickedItem.itemDamage == 14) return val furnaceSlotName = slot.inventory.getStackInSlot(furnaceSlot)?.displayName?.unformattedString() ?: return if (!furnaceName.matches(furnaceSlotName)) return -- cgit