Fix client_type assignment when running with --single-client-mode

This commit is contained in:
Ben 2020-05-04 02:27:20 +01:00
parent 04e511ed12
commit 1f371ca50e

View File

@ -14,7 +14,7 @@ async def handle_version_check(p, version: VersionChkConverter):
elif p.server.config.vanilla_version == version: elif p.server.config.vanilla_version == version:
p.client_type = ClientType.Vanilla p.client_type = ClientType.Vanilla
elif p.server.config.default_version == version: elif p.server.config.default_version == version:
p.client_type = p.server.config.default_version p.client_type = p.server.config.default_client
if p.client_type is None: if p.client_type is None:
await p.send_xml({'body': {'action': 'apiKO', 'r': '0'}}) await p.send_xml({'body': {'action': 'apiKO', 'r': '0'}})