aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-16 21:49:20 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-16 21:49:20 +0100
commit305178f5511bbf7b4499d7cf4142a067ab42e2fc (patch)
tree845b3cca6490fb9c1252215aa310eec108316bf1 /mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt
parent40ed3a1f667d58501fc43fb45f53585315c013d1 (diff)
downloadLocalTransactionLedger-305178f5511bbf7b4499d7cf4142a067ab42e2fc.tar.gz
LocalTransactionLedger-305178f5511bbf7b4499d7cf4142a067ab42e2fc.tar.bz2
LocalTransactionLedger-305178f5511bbf7b4499d7cf4142a067ab42e2fc.zip
refactor: Extract database models to own modules
Diffstat (limited to 'mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt')
-rw-r--r--mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt b/mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt
index b96a24a..072503f 100644
--- a/mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt
+++ b/mod/src/main/kotlin/moe/nea/ledger/modules/GodPotionMixinDetection.kt
@@ -26,9 +26,9 @@ class GodPotionMixinDetection {
godPotionMixinDrank.useMatcher(event.message) {
logger.logEntry(
LedgerEntry(
- TransactionType.GOD_POTION_MIXIN_DRANK,
- event.timestamp,
- listOf(
+ TransactionType.GOD_POTION_MIXIN_DRANK,
+ event.timestamp,
+ listOf(
ItemChange.lose(itemIdProvider.findForName(group("what")) ?: ItemId.NIL, 1)
)
)