Skip to content

Commit

Permalink
Fix oldConfig check
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokkonaut committed Feb 8, 2020
1 parent 1dba9f2 commit fc1cd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/diddiz/LogBlock/config/Config.java
Expand Up @@ -173,7 +173,7 @@ public static void load(LogBlock logblock) throws DataFormatException, IOExcepti
logblock.saveConfig();

ComparableVersion configVersion = new ComparableVersion(config.getString("version"));
boolean oldConfig = configVersion.compareTo(new ComparableVersion(logblock.getDescription().getVersion().replace(" (manually compiled)", ""))) < 0;
boolean oldConfig = configVersion.compareTo(new ComparableVersion(CURRENT_CONFIG_VERSION)) < 0;

url = "jdbc:mysql://" + config.getString("mysql.host") + ":" + config.getInt("mysql.port") + "/" + getStringIncludingInts(config, "mysql.database");
user = getStringIncludingInts(config, "mysql.user");
Expand Down

0 comments on commit fc1cd5e

Please sign in to comment.