Merge pull request #642 from ynput/enhancement/hero-version-is-smaller

Loader tool: Hero version is smaller than standard version
This commit is contained in:
Jakub Trllo 2024-06-12 16:21:09 +02:00 committed by GitHub
commit 2ed3a4376b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,7 +177,7 @@ class VersionItem:
other_version = abs(other.version)
# Hero version is greater than non-hero
if version == other_version:
return self.is_hero
return not self.is_hero
return version > other_version
def __lt__(self, other):
@ -188,7 +188,7 @@ class VersionItem:
other_version = abs(other.version)
# Non-hero version is lesser than hero
if version == other_version:
return not self.is_hero
return self.is_hero
return version < other_version
def __ge__(self, other):