diff options
| author | troido <troido@protonmail.com> | 2019-09-25 08:10:46 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2019-09-25 08:10:46 +0200 |
| commit | 4c973c439dd8dce8257711400722007340119a7b (patch) | |
| tree | 6eba8cc8d3cb793766da963dd3f872308cc5fe64 | |
| parent | 67e222ca2e7602584789928b8b8e072544ca5a9a (diff) | |
equipment messages are now list of pairs, not dict; server gets address on creation
| -rw-r--r-- | asciifarm/client/display.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/asciifarm/client/display.py b/asciifarm/client/display.py index f138382..a2c142e 100644 --- a/asciifarm/client/display.py +++ b/asciifarm/client/display.py @@ -134,12 +134,10 @@ class Display: def setEquipment(self, slots): - self.equipment.setItems( - sorted([ - slot + ": " + (item if item else "") - for slot, item in slots.items() - ]) - ) + self.equipment.setItems([ + slot + ": " + (item if item else "") + for slot, item in slots + ]) def setGround(self, items): self.ground.setItems(items) |
