From 3759f4c6443d5110f66dc78c8a258f539ec47b37 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Tue, 27 Jul 2021 14:58:39 +0200 Subject: [PATCH] FactorioClient: add /resync to trigger resending/reauth --- FactorioClient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FactorioClient.py b/FactorioClient.py index 039e7bef..bf7d8ca0 100644 --- a/FactorioClient.py +++ b/FactorioClient.py @@ -154,6 +154,10 @@ class FactorioCommandProcessor(ClientCommandProcessor): self.output("Cannot connect to a server with unknown own identity, bridge to Factorio first.") return super(FactorioCommandProcessor, self)._cmd_connect(address) + def _cmd_resync(self): + """Manually trigger a resync.""" + self.ctx.awaiting_bridge = True + class FactorioContext(CommonContext): command_processor = FactorioCommandProcessor