CC: don't try to reconnect on invalid version (#4606)

This commit is contained in:
qwint
2025-02-10 13:23:58 -05:00
committed by GitHub
parent e9c463c897
commit dbf6b6f935

View File

@@ -907,6 +907,7 @@ async def process_server_cmd(ctx: CommonContext, args: dict):
ctx.disconnected_intentionally = True
ctx.event_invalid_game()
elif 'IncompatibleVersion' in errors:
ctx.disconnected_intentionally = True
raise Exception('Server reported your client version as incompatible. '
'This probably means you have to update.')
elif 'InvalidItemsHandling' in errors: