Skip to content

Commit 5ac6950

Browse files
committed
move data folder creation position before init the configuration
1 parent 5ef6ce9 commit 5ac6950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,6 @@ public final void onLoad() {
562562
runtimeCheck(EnvCheckEntry.Stage.ON_LOAD);
563563
getLogger().info("Reading the configuration...");
564564
this.initConfiguration();
565-
//noinspection ResultOfMethodCallIgnored
566-
getDataFolder().mkdirs();
567565
this.bootError = null;
568566
getLogger().info("Loading up integration modules.");
569567
this.integrationHelper = new JavaIntegrationManager(this);
@@ -694,6 +692,8 @@ public void reload() {
694692

695693
private void initConfiguration() {
696694
/* Process the config */
695+
//noinspection ResultOfMethodCallIgnored
696+
getDataFolder().mkdirs();
697697
try {
698698
saveDefaultConfig();
699699
} catch (IllegalArgumentException resourceNotFoundException) {

0 commit comments

Comments
 (0)