send packed NetworkItem in PrintJSON

This commit is contained in:
Fabian Dill
2021-06-30 20:57:00 +02:00
parent fd9123610b
commit 60972e026b
2 changed files with 4 additions and 2 deletions

View File

@@ -308,7 +308,8 @@ class Hint(typing.NamedTuple):
add_json_text(parts, ".")
return {"cmd": "PrintJSON", "data": parts, "type": "Hint",
"receiving": self.receiving_player, "sending": self.finding_player}
"receiving": self.receiving_player,
"item": NetworkItem(self.item, self.location, self.finding_player)}
@property
def local(self):