SM: add client version check for DeathLink

This commit is contained in:
Fabian Dill 2021-12-02 06:13:37 +01:00
parent 83cfd6ec05
commit a60c6176be
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@ class SMWorld(World):
create_locations(self, self.player)
create_regions(self, self.world, self.player)
def get_required_client_version(self):
# changes to client DeathLink handling for 0.2.1
return max(super(SMWorld, self).get_required_client_version(), (0, 2, 1))
def getWord(self, w):
return (w & 0x00FF, (w & 0xFF00) >> 8)