Skip to content

Commit

Permalink
Update path for extensions (h2)
Browse files Browse the repository at this point in the history
  • Loading branch information
PotatoPresident committed May 29, 2024
1 parent 553eba8 commit ea77c00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package com.github.quiltservertools.ledger.api

import com.github.quiltservertools.ledger.Ledger
import com.github.quiltservertools.ledger.config.config
import com.github.quiltservertools.ledger.config.getDatabasePath
import net.minecraft.server.MinecraftServer
import net.minecraft.util.WorldSavePath
import javax.sql.DataSource

object ExtensionManager {
Expand All @@ -30,7 +30,7 @@ object ExtensionManager {
extensions.forEach {
if (it is DatabaseExtension) {
if (dataSource == null) {
dataSource = it.getDataSource(server.getSavePath(WorldSavePath.ROOT))
dataSource = it.getDataSource(config.getDatabasePath())
} else {
failExtensionRegistration(it)
}
Expand Down

0 comments on commit ea77c00

Please sign in to comment.