mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2025-01-05 07:27:53 +01:00
Add support for Minecraft pre-release 16w32a (protocol 301).
This commit is contained in:
parent
434bd1aab4
commit
d0169b2d0b
@ -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())
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user