Update Settings.java

Returning the method if file is NOT found.
This commit is contained in:
Maxetto 2015-07-19 01:37:22 +02:00
parent ea7b470c31
commit 1760461518

View File

@ -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));