Options: various fixes to get_option_name falsely giving get_current_option_name instead.

This commit is contained in:
Fabian Dill
2021-10-14 19:42:13 +02:00
parent 3f415b8265
commit 54e50f69e1
2 changed files with 15 additions and 9 deletions

View File

@@ -68,11 +68,15 @@ class FactorioContext(CommonContext):
raise Exception("Cannot connect to a server with unknown own identity, "
"bridge to Factorio first.")
await self.send_msgs([{"cmd": 'Connect',
'password': self.password, 'name': self.auth, 'version': Utils.version_tuple,
'tags': ['AP'],
'uuid': Utils.get_unique_identifier(), 'game': "Factorio"
}])
await self.send_msgs([{
"cmd": 'Connect',
'password': self.password,
'name': self.auth,
'version': Utils.version_tuple,
'tags': ['AP'],
'uuid': Utils.get_unique_identifier(),
'game': "Factorio"
}])
def on_print(self, args: dict):
logger.info(args["text"])