fix: create database in main class
All checks were successful
build / build (push) Successful in 1m35s

This commit is contained in:
lily 2025-04-25 20:13:25 -04:00
parent e0f3d7e914
commit 9283b9e925
Signed by: lily
GPG key ID: 601F3263FBCBC4B9

View file

@ -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";
@ -22,6 +24,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");
}
}