From 70d3e0d686c655d8d2e3c924f2219c763ca47a06 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sun, 21 Apr 2024 12:55:57 +0200 Subject: [PATCH] fix: compatibility check --- MyMcRealms/Controllers/WorldsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyMcRealms/Controllers/WorldsController.cs b/MyMcRealms/Controllers/WorldsController.cs index 7a48406..4b53fc2 100644 --- a/MyMcRealms/Controllers/WorldsController.cs +++ b/MyMcRealms/Controllers/WorldsController.cs @@ -41,7 +41,7 @@ namespace MyMcRealms.Controllers { int versionsCompared = SemVersion.Parse(gameVerision, SemVersionStyles.Strict).ComparePrecedenceTo(SemVersion.Parse(world.GameVersion, SemVersionStyles.Strict)); - string isCompatible = versionsCompared == 0 ? "COMPATIBLE" : versionsCompared > 0 ? "NEEDS_DOWNGRADE" : "NEEDS_UPGRADE"; + string isCompatible = versionsCompared == 0 ? "COMPATIBLE" : versionsCompared < 0 ? "NEEDS_DOWNGRADE" : "NEEDS_UPGRADE"; WorldResponse response = new() {