mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01:00
Fix ColoredText#toString
This commit is contained in:
parent
8499a2ceeb
commit
4c77c99442
@ -96,13 +96,12 @@ public class ColoredText {
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
if (updated) {
|
||||
return compiledJson;
|
||||
if (!updated) {
|
||||
this.compiledJson = getJsonObject().toString();
|
||||
this.updated = true;
|
||||
}
|
||||
|
||||
this.compiledJson = getJsonObject().toString();
|
||||
this.updated = true;
|
||||
return getJsonObject().toString();
|
||||
|
||||
return compiledJson;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user