Fix ColoredText#toString

This commit is contained in:
Felix Cravic 2020-07-31 19:19:32 +02:00
parent 8499a2ceeb
commit 4c77c99442

View File

@ -96,13 +96,12 @@ public class ColoredText {
*/ */
@Override @Override
public String toString() { public String toString() {
if (updated) { if (!updated) {
return compiledJson; this.compiledJson = getJsonObject().toString();
this.updated = true;
} }
this.compiledJson = getJsonObject().toString(); return compiledJson;
this.updated = true;
return getJsonObject().toString();
} }
/** /**