Fixed "RESET is not a style/color" error.
This commit is contained in:
parent
c42949ec59
commit
4d05b4a376
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user