fix: create database in main class
All checks were successful
build / build (push) Successful in 1m35s
All checks were successful
build / build (push) Successful in 1m35s
This commit is contained in:
parent
e0f3d7e914
commit
9283b9e925
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,8 @@ import net.fabricmc.api.ModInitializer;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import dev.lilyvex.oauthfabric.database.Database;
|
||||
|
||||
public class OAuthFabric implements ModInitializer {
|
||||
public static final String MOD_ID = "oauth-fabric";
|
||||
|
||||
|
@ -21,6 +23,9 @@ public class OAuthFabric implements ModInitializer {
|
|||
|
||||
OAuthFabricConfig oAuthFabricConfig = new OAuthFabricConfig();
|
||||
oAuthFabricConfig.load();
|
||||
|
||||
Database database = new Database();
|
||||
database.setDatabase(oAuthFabricConfig.getDatabase());
|
||||
|
||||
LOGGER.info("oauth-fabric: Initialized");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue