9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-29 11:39:14 +00:00

fix: correct compat version check

This commit is contained in:
William
2024-08-26 14:08:25 +01:00
parent 47373d8974
commit b68aedc99a
2 changed files with 8 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ public interface CompatibilityChecker {
}
// Check compatibility
if (!compatible.equals(getPlugin().getMinecraftVersion())) {
if (compatible.compareTo(getPlugin().getMinecraftVersion()) != 0) {
throw new HuskSync.FailedToLoadException("""
Incompatible Minecraft version. This version of HuskSync is designed for Minecraft %s.
Please download the correct version of HuskSync for your server's Minecraft version (%s)."""