Fix wrong tip if wrong config version

This commit is contained in:
Minecon724 2024-12-31 17:01:49 +01:00
parent 3a6d1366ab
commit 6153da89a1
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -75,9 +75,9 @@ public record TweaksConfig(
if (configVersion == 0) {
throw exception;
} else if (configVersion > CONFIG_VERSION) {
throw new RuntimeException("Please follow update instructions https://www.spigotmc.org/resources/tweaks724.121057/updates", exception);
} else if (configVersion < CONFIG_VERSION) {
throw new RuntimeException("Please follow update instructions https://www.spigotmc.org/resources/tweaks724.121057/updates", exception);
} else if (configVersion > CONFIG_VERSION) {
throw new RuntimeException("Did you downgrade the plugin? Remove config.yml and let the plugin re-create it", exception);
}