From 4c973c439dd8dce8257711400722007340119a7b Mon Sep 17 00:00:00 2001 From: troido Date: Wed, 25 Sep 2019 08:10:46 +0200 Subject: equipment messages are now list of pairs, not dict; server gets address on creation --- asciifarm/client/display.py | 10 ++++------ 1 file 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) -- cgit