Add support for Minecraft pre-release 16w32a (protocol 301).

This commit is contained in:
joo 2016-08-11 10:40:50 +01:00
parent 434bd1aab4
commit d0169b2d0b
2 changed files with 16 additions and 19 deletions

View File

@ -21,6 +21,7 @@ SUPPORTED_MINECRAFT_VERSIONS = {
'1.9.3': 110, '1.9.3': 110,
'1.9.4': 110, '1.9.4': 110,
'1.10': 210, '1.10': 210,
'16w32a': 301,
} }
SUPPORTED_PROTOCOL_VERSIONS = sorted(SUPPORTED_MINECRAFT_VERSIONS.values()) SUPPORTED_PROTOCOL_VERSIONS = sorted(SUPPORTED_MINECRAFT_VERSIONS.values())

View File

@ -8,10 +8,6 @@ class VersionTest(unittest.TestCase):
def test_module_version_is_a_valid_pep_386_strict_version(self): def test_module_version_is_a_valid_pep_386_strict_version(self):
SV(minecraft.__version__) SV(minecraft.__version__)
def test_minecraft_version_is_a_valid_pep_386_strict_version(self):
for version in minecraft.SUPPORTED_MINECRAFT_VERSIONS.keys():
SV(version)
def test_protocol_version_is_an_int(self): def test_protocol_version_is_an_int(self):
for version in minecraft.SUPPORTED_PROTOCOL_VERSIONS: for version in minecraft.SUPPORTED_PROTOCOL_VERSIONS:
self.assertTrue(type(version) is int) self.assertTrue(type(version) is int)