mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
Forgot that step.
This commit is contained in:
parent
3ba5f311b1
commit
cd9930d3c0
@ -37,10 +37,9 @@ public class ColorUtil {
|
||||
// At least one color inside.
|
||||
char[] newChars = new char[chars.length - 2];
|
||||
int tgtIndex = 0; // TargetIndex.
|
||||
do{
|
||||
for(tgtIndex = 0; tgtIndex < srcIndex; tgtIndex++){
|
||||
newChars[tgtIndex] = chars[tgtIndex];
|
||||
tgtIndex++;
|
||||
} while (tgtIndex < srcIndex);
|
||||
};
|
||||
for (srcIndex = srcIndex + 2; srcIndex < chars.length; srcIndex++){
|
||||
if (chars[srcIndex] == '&' && srcIndex < chars.length -1 && allColorChars.indexOf(chars[srcIndex + 1]) > -1){
|
||||
// Skip this one;
|
||||
|
@ -37,7 +37,7 @@ public class TestColorUtil {
|
||||
for (ChatColor color : ChatColor.values()){
|
||||
char c = color.getChar();
|
||||
for (String[] pattern : generic){
|
||||
pattern[0] = pattern[0].replace('/', c);
|
||||
items.add(new String[]{ pattern[0].replace('/', c), pattern[1]});
|
||||
}
|
||||
}
|
||||
int i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user