aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/neodymium')
-rw-r--r--src/main/java/makamys/neodymium/config/Config.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/makamys/neodymium/config/Config.java b/src/main/java/makamys/neodymium/config/Config.java
index 8ae3f79..32d2c22 100644
--- a/src/main/java/makamys/neodymium/config/Config.java
+++ b/src/main/java/makamys/neodymium/config/Config.java
@@ -92,7 +92,7 @@ public class Config {
public static void reloadConfig(ReloadInfo info) {
try {
- if(Files.size(configFile.toPath()) == 0) {
+ if(configFile.exists() && Files.size(configFile.toPath()) == 0) {
// Sometimes the watcher fires twice, and the first time the file is empty.
// I don't know why. This is the workaround.
return;