diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2025-02-23 09:59:02 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2025-02-24 17:17:58 +0100 |
commit | 1382f4fc3651701fafbbdb4a74cd633543727b5a (patch) | |
tree | 619d9e3374e9ea089baab7a01b0f8af1f0f8fd75 /mod/src/main/kotlin/moe/nea/ledger | |
parent | 8e386bcf8d10784fc7784333be9e4470598c71d4 (diff) | |
download | LocalTransactionLedger-1382f4fc3651701fafbbdb4a74cd633543727b5a.tar.gz LocalTransactionLedger-1382f4fc3651701fafbbdb4a74cd633543727b5a.tar.bz2 LocalTransactionLedger-1382f4fc3651701fafbbdb4a74cd633543727b5a.zip |
fix: Forge Detection logging if you don't have the required items.
Diffstat (limited to 'mod/src/main/kotlin/moe/nea/ledger')
-rw-r--r-- | mod/src/main/kotlin/moe/nea/ledger/modules/ForgeDetection.kt | 1 |
1 files changed, 1 insertions, 0 deletions
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 |