From 5c7f1f4e9677ed5794604b2835098e64294e5357 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 27 Oct 2024 21:18:57 +0100 Subject: Fix money-ledger folder not being created for db Fixes https://github.com/nea89o/LocalTransactionLedger/issues/1 --- src/main/kotlin/moe/nea/ledger/Ledger.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (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 784c111..b4fe2c4 100644 --- a/src/main/kotlin/moe/nea/ledger/Ledger.kt +++ b/src/main/kotlin/moe/nea/ledger/Ledger.kt @@ -3,11 +3,7 @@ package moe.nea.ledger import io.github.notenoughupdates.moulconfig.common.IMinecraft import io.github.notenoughupdates.moulconfig.managed.ManagedConfig import moe.nea.ledger.config.LedgerConfig -import moe.nea.ledger.database.Column -import moe.nea.ledger.database.DBInstant -import moe.nea.ledger.database.DBString import moe.nea.ledger.database.Database -import moe.nea.ledger.database.Table import net.minecraft.client.Minecraft import net.minecraft.command.CommandBase import net.minecraft.command.ICommandSender @@ -53,6 +49,7 @@ class Ledger { TODO: TRADING, FORGE, COOKIE_EATEN, NPC_SELL, NPC_BUY */ companion object { + val dataFolder = File("money-ledger").apply { mkdirs() } val logger = LogManager.getLogger("MoneyLedger") val managedConfig = ManagedConfig.create(File("config/money-ledger/config.json"), LedgerConfig::class.java) { checkExpose = false -- cgit