From 18d2cd45341a63336727a3290faa4afa218bdacc Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Thu, 11 Jul 2019 15:46:13 +0200 Subject: [PATCH] Fix bug where failed message was shown when folder creation succeeded --- pom.xml | 2 +- src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Database.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 768680f..a904cd2 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 at.pcgamingfreaks Minepacks - 2.0.7 + 2.0.8-RC1 scm:git:git@github.com:GeorgH93/Minepacks.git diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Database.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Database.java index e0fa15d..b7637e5 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Database.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/Database/Database.java @@ -66,7 +66,7 @@ public Database(Minepacks mp) maxAge = plugin.getConfiguration().getAutoCleanupMaxInactiveDays(); unCacheStrategie = bungeeCordMode ? new OnDisconnect(this) : UnCacheStrategie.getUnCacheStrategie(this); backupFolder = new File(this.plugin.getDataFolder(), "backups"); - if(!backupFolder.exists() && backupFolder.mkdirs()) mp.getLogger().info("Failed to create backups folder."); + if(!backupFolder.exists() && !backupFolder.mkdirs()) mp.getLogger().info("Failed to create backups folder."); } public void init()