From 353ea0fbbeb6bd2c5cd9ad29b4f3995f3c413c50 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 6 Jun 2021 23:44:04 +0200 Subject: [PATCH] encode correct color --- FactorioClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FactorioClient.py b/FactorioClient.py index 5b4c5734..e824e8fc 100644 --- a/FactorioClient.py +++ b/FactorioClient.py @@ -253,7 +253,7 @@ class FactorioJSONtoTextParser(JSONtoTextParser): for color in colors: if color in {"red", "green", "blue", "orange", "yellow", "pink", "purple", "white", "black", "gray", "brown", "cyan", "acid"}: - node["text"] = f"[color={node['color']}]{node['text']}[/color]" + node["text"] = f"[color={color}]{node['text']}[/color]" return self._handle_text(node) elif color == "magenta": node["text"] = f"[color=pink]{node['text']}[/color]"