Skip to content

Commit

Permalink
Fix #6: fix version-check, and with that content-listing (#7)
Browse files Browse the repository at this point in the history
Python cannot compare tuples with lists, which is a bit unexpected.
  • Loading branch information
TrueBrain committed Apr 25, 2020
1 parent e0c9341 commit 5eeeac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bananas_server/application/bananas_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def receive_PACKET_CONTENT_CLIENT_INFO_LIST(self, source, content_type, openttd_
version_major = (openttd_version >> 28) & 0xF
version_minor = (openttd_version >> 24) & 0xF
version_patch = (openttd_version >> 20) & 0xF
version = (version_major, version_minor, version_patch)
version = [version_major, version_minor, version_patch]

for content_entry in self._by_content_type[content_type]:
if content_entry.min_version and version < content_entry.min_version:
Expand Down

0 comments on commit 5eeeac4

Please sign in to comment.