Clean up stuff for old versions

This commit is contained in:
miniduikboot committed 2023-10-25 21:37:38 +02:00
1 parent 5c31df8c05
commit fd2d457e6b
1 file changed
+6 -13
@@ -159,21 +159,14 @@ internal class CompatibilityManager : ICompatibilityManager
_supportMap.Add(gameVersion, compatibilityGroup);
// We special case the host-only 2023.7.11 here
// Ideally it should never have existed so remove once 2023.7.11 is unsupported TODO
var includeInSupportRange = gameVersion != new GameVersion(2222, 0, 0);
if (includeInSupportRange)
if (gameVersion < _lowestVersionSupported)
{
if (gameVersion < _lowestVersionSupported)
{
_lowestVersionSupported = gameVersion;
}
_lowestVersionSupported = gameVersion;
}
if (gameVersion > _highestVersionSupported)
{
_highestVersionSupported = gameVersion;
}
if (gameVersion > _highestVersionSupported)
{
_highestVersionSupported = gameVersion;
}
}