Forgot that step.

This commit is contained in:
asofold 2013-06-30 22:45:27 +02:00
parent 3ba5f311b1
commit cd9930d3c0
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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;