1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 18:53:11 +01:00

Formatting

This commit is contained in:
cerevisiae
2010-12-01 11:44:32 -06:00
parent f1eb5ffc9e
commit 535c42be0b
3 changed files with 23 additions and 11 deletions

View File

@@ -46,10 +46,10 @@ public class vMinecraftChat {
//Loop through the words finding their length and increasing
//j, the end point for the sub string
while(len <= 316 && i < split.length)
while(len <= 300 && i < split.length)
{
len += msgLength(split[i]) + 4;
if( len <= 316)
if( len <= 300)
i++;
}
@@ -57,8 +57,8 @@ public class vMinecraftChat {
String[] temp = new String[i - j];
System.arraycopy(split, j, temp, 0, i - j);
//Merge them and add them to the output array
out.add( etc.combineSplit(0, temp, " ") );
//Merge them and add them to the output array.
out.add( applyColors(etc.combineSplit(0, temp, " ")) );
}
//Convert to an array and return