1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-12-24 21:38:23 -05:00

fix: semver

This commit is contained in:
CyberL1 2024-04-26 18:07:13 +02:00
parent e2fb654a34
commit 3269876e9f

View File

@ -38,7 +38,7 @@ namespace MyMcRealms.Controllers
foreach (var world in AllServers.Servers)
{
int versionsCompared = SemVersion.Parse(gameVerision, SemVersionStyles.Strict).ComparePrecedenceTo(SemVersion.Parse(world.GameVersion, SemVersionStyles.Strict));
int versionsCompared = SemVersion.Parse(gameVerision, SemVersionStyles.OptionalPatch).ComparePrecedenceTo(SemVersion.Parse(world.GameVersion, SemVersionStyles.OptionalPatch));
string isCompatible = versionsCompared == 0 ? "COMPATIBLE" : versionsCompared < 0 ? "NEEDS_DOWNGRADE" : "NEEDS_UPGRADE";