aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-16 20:46:41 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-16 20:46:41 +0100
commit2cc7d668eacba1919208ba6b131b01fe10bbf0ed (patch)
tree8490092dbffcc729acc4a3679028ba633e395fae /mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt
parent0cb08682bc6b759a054066e145cb0332a40f42a7 (diff)
downloadLocalTransactionLedger-2cc7d668eacba1919208ba6b131b01fe10bbf0ed.tar.gz
LocalTransactionLedger-2cc7d668eacba1919208ba6b131b01fe10bbf0ed.tar.bz2
LocalTransactionLedger-2cc7d668eacba1919208ba6b131b01fe10bbf0ed.zip
refactor: Move some basetypes and fix: Kuudra chest and dungeon chest detection mixing
Diffstat (limited to 'mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt')
-rw-r--r--mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt b/mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt
index e0e9322..88c45d2 100644
--- a/mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt
+++ b/mod/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt
@@ -36,6 +36,9 @@ class KuudraChestDetection : ChestDetection() {
if (requiredKey != null && !hasKey(requiredKey)) {
return
}
+ if (requiredKey == null && event.slotIn.inventory.name != "Free Chest") {
+ return
+ }
log.logEntry(LedgerEntry(
TransactionType.KUUDRA_CHEST_OPEN,
diffs.timestamp,