mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-12-24 21:38:23 -05:00
fix: semver
This commit is contained in:
parent
e2fb654a34
commit
3269876e9f
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user