From aad10a114675a0dc8be2ef07a3bf767f611e5a3d Mon Sep 17 00:00:00 2001 From: Andre601 Date: Sun, 11 Jun 2023 21:38:29 +0200 Subject: [PATCH] Fix broken version check for config --- .../ch/andre601/advancedserverlist/core/file/FileHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/ch/andre601/advancedserverlist/core/file/FileHandler.java b/core/src/main/java/ch/andre601/advancedserverlist/core/file/FileHandler.java index 4dda3b26..2291eaea 100644 --- a/core/src/main/java/ch/andre601/advancedserverlist/core/file/FileHandler.java +++ b/core/src/main/java/ch/andre601/advancedserverlist/core/file/FileHandler.java @@ -186,6 +186,6 @@ public boolean getBoolean(Object... path){ } public boolean isOldConfig(){ - return node.node("config-version").virtual() || node.node("config-version").getInt(-1) < ConfigMigrator.LATEST; + return node.node("configVersion").virtual() || node.node("configVersion").getInt(0) < ConfigMigrator.LATEST; } }