Factorio: rename "data" to "keys" to make EnergyLink work

This commit is contained in:
Fabian Dill 2022-03-04 21:41:07 +01:00
parent 7ca6f24e6c
commit 73b14d3826
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class FactorioContext(CommonContext):
item_name in args["checked_locations"]}) item_name in args["checked_locations"]})
if cmd == "Connected" and self.energy_link_increment: if cmd == "Connected" and self.energy_link_increment:
asyncio.create_task(self.send_msgs([{ asyncio.create_task(self.send_msgs([{
"cmd": "SetNotify", "data": ["EnergyLink"] "cmd": "SetNotify", "keys": ["EnergyLink"]
}])) }]))
elif cmd == "SetReply": elif cmd == "SetReply":
if args["key"] == "EnergyLink": if args["key"] == "EnergyLink":