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