FactorioClient: add /resync to trigger resending/reauth

This commit is contained in:
Fabian Dill 2021-07-27 14:58:39 +02:00
parent f232f74246
commit 3759f4c644
1 changed files with 4 additions and 0 deletions

View File

@ -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