mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2025-01-03 06:28:17 +01:00
Add support for Minecraft pre-release 16w32a (protocol 301).
This commit is contained in:
parent
434bd1aab4
commit
d0169b2d0b
@ -6,21 +6,22 @@ with a MineCraft server.
|
||||
__version__ = "0.2.0"
|
||||
|
||||
SUPPORTED_MINECRAFT_VERSIONS = {
|
||||
'1.8': 47,
|
||||
'1.8.1': 47,
|
||||
'1.8.2': 47,
|
||||
'1.8.3': 47,
|
||||
'1.8.4': 47,
|
||||
'1.8.5': 47,
|
||||
'1.8.6': 47,
|
||||
'1.8.7': 47,
|
||||
'1.8.8': 47,
|
||||
'1.9': 107,
|
||||
'1.9.1': 108,
|
||||
'1.9.2': 109,
|
||||
'1.9.3': 110,
|
||||
'1.9.4': 110,
|
||||
'1.10': 210,
|
||||
'1.8': 47,
|
||||
'1.8.1': 47,
|
||||
'1.8.2': 47,
|
||||
'1.8.3': 47,
|
||||
'1.8.4': 47,
|
||||
'1.8.5': 47,
|
||||
'1.8.6': 47,
|
||||
'1.8.7': 47,
|
||||
'1.8.8': 47,
|
||||
'1.9': 107,
|
||||
'1.9.1': 108,
|
||||
'1.9.2': 109,
|
||||
'1.9.3': 110,
|
||||
'1.9.4': 110,
|
||||
'1.10': 210,
|
||||
'16w32a': 301,
|
||||
}
|
||||
|
||||
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):
|
||||
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):
|
||||
for version in minecraft.SUPPORTED_PROTOCOL_VERSIONS:
|
||||
self.assertTrue(type(version) is int)
|
||||
|
Loading…
Reference in New Issue
Block a user