Skip to content

Commit bab8a0f

Browse files
authored
Fix logic error
oopsie
1 parent b77b7b3 commit bab8a0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ProjectLighthouse.Servers.GameServer/Helpers/PatchworkHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static bool UserHasValidPatchworkUserAgent(GameTokenEntity token, string
3030
if (numericVersion == 0)
3131
return false;
3232

33-
if (numericVersion - 1 != (int)token.GameVersion && !Enum.IsDefined(typeof(GameVersion), numericVersion))
33+
if (numericVersion - 1 != (int)token.GameVersion && !Enum.IsDefined(typeof(GameVersion), numericVersion - 1))
3434
return false;
3535

3636
string[] patchworkVer = userAgent.Split(' ')[1].Split('.');

0 commit comments

Comments
 (0)