It was my greatest enemy, *parenthesis*
...or the lack of them anyways: Finally found what was causing the exceptions
This commit is contained in:
parent
5a217fcb70
commit
840b522a98
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ public class ChatProcessing {
|
|||
int len = name.length() / clrs.length;
|
||||
val nclar = ChatPlayer.getPlayer(player.getUniqueId(), ChatPlayer.class).NameColorLocations().get();
|
||||
int[] ncl = nclar == null ? null : nclar.stream().mapToInt(Integer::intValue).toArray();
|
||||
if (ncl != null && Arrays.stream(ncl).sum() != name.length() || ncl.length != clrs.length)
|
||||
if (ncl != null && (Arrays.stream(ncl).sum() != name.length() || ncl.length != clrs.length))
|
||||
ncl = null; // Reset if name length changed
|
||||
if (name.charAt(0) == '~') { // Ignore ~ in nicknames
|
||||
prevlen.incrementAndGet();
|
||||
|
|
Loading…
Reference in a new issue