Fix chatcolor check at wrong position for names

This commit is contained in:
libraryaddict 2020-04-26 04:42:45 +12:00
parent 9350f798eb
commit 41dffe1b46
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

@ -1453,7 +1453,7 @@ public class DisguiseUtilities {
String[] newName = new String[]{name, playerName, ""};
if (name.length() > 16) {
if (name.charAt(16) == ChatColor.COLOR_CHAR) {
if (name.charAt(15) == ChatColor.COLOR_CHAR) {
newName[0] = name.substring(0, 15);
} else {
newName[0] = name.substring(0, 16);