Fix chatcolor check at wrong position for names
This commit is contained in:
parent
9350f798eb
commit
41dffe1b46
@ -1453,7 +1453,7 @@ public class DisguiseUtilities {
|
|||||||
String[] newName = new String[]{name, playerName, ""};
|
String[] newName = new String[]{name, playerName, ""};
|
||||||
|
|
||||||
if (name.length() > 16) {
|
if (name.length() > 16) {
|
||||||
if (name.charAt(16) == ChatColor.COLOR_CHAR) {
|
if (name.charAt(15) == ChatColor.COLOR_CHAR) {
|
||||||
newName[0] = name.substring(0, 15);
|
newName[0] = name.substring(0, 15);
|
||||||
} else {
|
} else {
|
||||||
newName[0] = name.substring(0, 16);
|
newName[0] = name.substring(0, 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user