Update Messages.java
Returning the method if file is NOT found.
This commit is contained in:
parent
00da050f4c
commit
ea7b470c31
@ -25,7 +25,7 @@ public class Messages extends CustomConfiguration {
|
|||||||
* The filename to open
|
* The filename to open
|
||||||
*/
|
*/
|
||||||
public final void loadDefaults(File file) {
|
public final void loadDefaults(File file) {
|
||||||
if (file.exists())
|
if (!file.exists())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
setDefaults(YamlConfiguration.loadConfiguration(file));
|
setDefaults(YamlConfiguration.loadConfiguration(file));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user