diff --git a/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java b/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java index 9a1a962..4d4b55a 100644 --- a/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java +++ b/src/main/java/org/samo_lego/simpleauth/SimpleAuth.java @@ -54,8 +54,8 @@ public class SimpleAuth implements DedicatedServerModInitializer { // Creating data directory (database and config files are stored there) File file = new File(gameDirectory + "/mods/SimpleAuth/levelDBStore"); - if (!file.exists() && !file.mkdir()) - LOGGER.error("[SimpleAuth] Error creating directory!"); + if (!file.exists() && !file.mkdirs()) + throw new RuntimeException("[SimpleAuth] Error creating directory!"); // Loading config config = AuthConfig.load(new File(gameDirectory + "/mods/SimpleAuth/config.json")); // Connecting to db