1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-11-24 15:08:22 -05:00

fix: compatibility check

This commit is contained in:
CyberL1 2024-04-21 12:55:57 +02:00
parent 95e4a37cb0
commit 70d3e0d686

View File

@ -41,7 +41,7 @@ namespace MyMcRealms.Controllers
{ {
int versionsCompared = SemVersion.Parse(gameVerision, SemVersionStyles.Strict).ComparePrecedenceTo(SemVersion.Parse(world.GameVersion, SemVersionStyles.Strict)); 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() WorldResponse response = new()
{ {