diff options
-rw-r--r-- | apworld/client/manager.gd | 2 | ||||
-rw-r--r-- | apworld/context.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/apworld/client/manager.gd b/apworld/client/manager.gd index 46c5456..955d470 100644 --- a/apworld/client/manager.gd +++ b/apworld/client/manager.gd | |||
@@ -269,7 +269,7 @@ func _process_text_message(message): | |||
269 | else: | 269 | else: |
270 | parts.append("[color=#fafad2]%s[/color]" % message_part["text"]) | 270 | parts.append("[color=#fafad2]%s[/color]" % message_part["text"]) |
271 | elif message_part["type"] == "item": | 271 | elif message_part["type"] == "item": |
272 | parts.append(wrapInItemColorTags(message_part["text"], message_part["flags"])) | 272 | parts.append(wrapInItemColorTags(message_part["text"], int(message_part["flags"]))) |
273 | elif message_part["type"] == "location": | 273 | elif message_part["type"] == "location": |
274 | parts.append("[color=#00ff7f]%s[/color]" % message_part["text"]) | 274 | parts.append("[color=#00ff7f]%s[/color]" % message_part["text"]) |
275 | 275 | ||
diff --git a/apworld/context.py b/apworld/context.py index 2294491..05f75a3 100644 --- a/apworld/context.py +++ b/apworld/context.py | |||
@@ -167,7 +167,8 @@ class Lingo2ClientContext(CommonContext): | |||
167 | elif message_part["type"] == "item_id": | 167 | elif message_part["type"] == "item_id": |
168 | parts.append({ | 168 | parts.append({ |
169 | "type": "item", | 169 | "type": "item", |
170 | "text": self.item_names.lookup_in_slot(int(message_part["text"]), message_part["player"]) | 170 | "text": self.item_names.lookup_in_slot(int(message_part["text"]), message_part["player"]), |
171 | "flags": message_part["flags"], | ||
171 | }) | 172 | }) |
172 | elif message_part["type"] == "location_id": | 173 | elif message_part["type"] == "location_id": |
173 | parts.append({ | 174 | parts.append({ |