From 1760461518127fb4ae6af4137659b239bcecdfee Mon Sep 17 00:00:00 2001 From: Maxetto Date: Sun, 19 Jul 2015 01:37:22 +0200 Subject: [PATCH] Update Settings.java Returning the method if file is NOT found. --- src/main/java/fr/xephi/authme/settings/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/settings/Settings.java b/src/main/java/fr/xephi/authme/settings/Settings.java index 16bd3330a..abd5e45f0 100644 --- a/src/main/java/fr/xephi/authme/settings/Settings.java +++ b/src/main/java/fr/xephi/authme/settings/Settings.java @@ -704,7 +704,7 @@ public final class Settings extends YamlConfiguration { * The filename to open */ public final void loadDefaults(File file) { - if (file.exists()) + if (!file.exists()) return; setDefaults(YamlConfiguration.loadConfiguration(file));