Fix bukkit and downstream fork MOTD crash

This commit is contained in:
Andrew 2023-12-28 18:34:35 -05:00
parent 1d32afa09d
commit a67f53a4c9

View File

@ -34,8 +34,13 @@ class Server:
lines = []
description = self.description
if "text" in description.keys():
lines.append(description["text"])
if "extra" in description.keys():
for e in description["extra"]:
if not isinstance(e, dict):
lines.append(e)
continue
# Conversion format code needed only for Java Version
lines.append(get_code_format("reset"))
if "bold" in e.keys():