Merge pull request #115 from Stefan923/1.6.x

Fixed a JSON issue.
This commit is contained in:
DroppingAnvil 2020-05-11 16:47:08 -05:00 committed by GitHub
commit 7d3c4d6e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,10 +65,14 @@ public class TextUtil {
text = ""; text = "";
} }
ChatColor tempColor = ChatColor.getByChar(chars[i + 1]); ChatColor tempColor = ChatColor.getByChar(chars[i + 1]);
if (tempColor.isColor()) { if (tempColor != null) {
color = tempColor; if (tempColor == ChatColor.RESET) {
} else { color = ChatColor.WHITE;
style = tempColor; } else if (tempColor.isColor()) {
color = tempColor;
} else {
style = tempColor;
}
} }
i++; // skip color char i++; // skip color char
} else { } else {