From dc19995f2b11ba595775b7224df200e365e7c4bf Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 7 Jan 2025 15:57:48 +0100 Subject: refactor: Extract database to its own module --- src/main/kotlin/moe/nea/ledger/Ledger.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/moe/nea/ledger/Ledger.kt') diff --git a/src/main/kotlin/moe/nea/ledger/Ledger.kt b/src/main/kotlin/moe/nea/ledger/Ledger.kt index 2980258..b03395a 100644 --- a/src/main/kotlin/moe/nea/ledger/Ledger.kt +++ b/src/main/kotlin/moe/nea/ledger/Ledger.kt @@ -1,6 +1,7 @@ package moe.nea.ledger import com.google.gson.Gson +import io.github.notenoughupdates.moulconfig.Config import io.github.notenoughupdates.moulconfig.managed.ManagedConfig import moe.nea.ledger.config.LedgerConfig import moe.nea.ledger.config.UpdateUi @@ -116,6 +117,7 @@ class Ledger { di.registerSingleton(Minecraft.getMinecraft()) di.registerSingleton(gson) di.register(LedgerConfig::class.java, DIProvider { managedConfig.instance }) + di.register(Config::class.java, DIProvider.fromInheritance(LedgerConfig::class.java)) di.registerInjectableClasses( AccessorySwapperDetection::class.java, AuctionHouseDetection::class.java, -- cgit