From a60c6176be53d5ecc44853dce9c437d8ea1ef3f0 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 2 Dec 2021 06:13:37 +0100 Subject: [PATCH] SM: add client version check for DeathLink --- worlds/sm/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worlds/sm/__init__.py b/worlds/sm/__init__.py index f60b63d3..6eaa0f6e 100644 --- a/worlds/sm/__init__.py +++ b/worlds/sm/__init__.py @@ -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)