mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
FactorioClient: add /resync to trigger resending/reauth
This commit is contained in:
@@ -154,6 +154,10 @@ class FactorioCommandProcessor(ClientCommandProcessor):
|
|||||||
self.output("Cannot connect to a server with unknown own identity, bridge to Factorio first.")
|
self.output("Cannot connect to a server with unknown own identity, bridge to Factorio first.")
|
||||||
return super(FactorioCommandProcessor, self)._cmd_connect(address)
|
return super(FactorioCommandProcessor, self)._cmd_connect(address)
|
||||||
|
|
||||||
|
def _cmd_resync(self):
|
||||||
|
"""Manually trigger a resync."""
|
||||||
|
self.ctx.awaiting_bridge = True
|
||||||
|
|
||||||
|
|
||||||
class FactorioContext(CommonContext):
|
class FactorioContext(CommonContext):
|
||||||
command_processor = FactorioCommandProcessor
|
command_processor = FactorioCommandProcessor
|
||||||
|
Reference in New Issue
Block a user