From 6153da89a162eed8b979980dd660852381da7443 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Tue, 31 Dec 2024 17:01:49 +0100 Subject: [PATCH] Fix wrong tip if wrong config version --- src/main/java/eu/m724/tweaks/TweaksConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/m724/tweaks/TweaksConfig.java b/src/main/java/eu/m724/tweaks/TweaksConfig.java index 57530df..3a10a27 100644 --- a/src/main/java/eu/m724/tweaks/TweaksConfig.java +++ b/src/main/java/eu/m724/tweaks/TweaksConfig.java @@ -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); }