Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit aad10a1

Browse files
committed
Fix broken version check for config
1 parent eb44557 commit aad10a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/ch/andre601/advancedserverlist/core/file/FileHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,6 @@ public boolean getBoolean(Object... path){
186186
}
187187

188188
public boolean isOldConfig(){
189-
return node.node("config-version").virtual() || node.node("config-version").getInt(-1) < ConfigMigrator.LATEST;
189+
return node.node("configVersion").virtual() || node.node("configVersion").getInt(0) < ConfigMigrator.LATEST;
190190
}
191191
}

0 commit comments

Comments
 (0)