Fix logic error

oopsie
This commit is contained in:
FeTetra 2025-05-26 08:06:38 -04:00 committed by GitHub
parent b77b7b3fb9
commit bab8a0f10b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,7 +30,7 @@ public static class PatchworkHelper
if (numericVersion == 0)
return false;
if (numericVersion - 1 != (int)token.GameVersion && !Enum.IsDefined(typeof(GameVersion), numericVersion))
if (numericVersion - 1 != (int)token.GameVersion && !Enum.IsDefined(typeof(GameVersion), numericVersion - 1))
return false;
string[] patchworkVer = userAgent.Split(' ')[1].Split('.');