aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/kotlin/moe/nea/ledger/Ledger.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-30 20:11:37 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-30 20:11:37 +0100
commit8e386bcf8d10784fc7784333be9e4470598c71d4 (patch)
treef0bd83c41bd083b6708703d420fe466b5f66111a /mod/src/main/kotlin/moe/nea/ledger/Ledger.kt
parente51a59636129c35b58dbdda83b141b539a87e6fe (diff)
downloadLocalTransactionLedger-8e386bcf8d10784fc7784333be9e4470598c71d4.tar.gz
LocalTransactionLedger-8e386bcf8d10784fc7784333be9e4470598c71d4.tar.bz2
LocalTransactionLedger-8e386bcf8d10784fc7784333be9e4470598c71d4.zip
feat: Add ledger event as a baseclass for events with error reportingHEADnightlymaster
Diffstat (limited to 'mod/src/main/kotlin/moe/nea/ledger/Ledger.kt')
-rw-r--r--mod/src/main/kotlin/moe/nea/ledger/Ledger.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/src/main/kotlin/moe/nea/ledger/Ledger.kt b/mod/src/main/kotlin/moe/nea/ledger/Ledger.kt
index 9bbc8e1..6d3c592 100644
--- a/mod/src/main/kotlin/moe/nea/ledger/Ledger.kt
+++ b/mod/src/main/kotlin/moe/nea/ledger/Ledger.kt
@@ -42,6 +42,7 @@ import moe.nea.ledger.modules.NpcDetection
import moe.nea.ledger.modules.PestRepellentDetection
import moe.nea.ledger.modules.UpdateChecker
import moe.nea.ledger.modules.VisitorDetection
+import moe.nea.ledger.telemetry.TelemetryProvider
import moe.nea.ledger.utils.ErrorUtil
import moe.nea.ledger.utils.MinecraftExecutor
import moe.nea.ledger.utils.di.DI
@@ -112,7 +113,9 @@ class Ledger {
tickQueue.add(runnable)
}
- val di = DI()
+ private val di = DI()
+
+ fun leakDI() = di
}
@Mod.EventHandler