mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixing words too long to fit on a single line.
This commit is contained in:
parent
461e998537
commit
6c922a02c8
@ -70,19 +70,14 @@ public class vMinecraftChat {
|
|||||||
String[] tempArray = wordCut(len, split.remove(0));
|
String[] tempArray = wordCut(len, split.remove(0));
|
||||||
words.add(tempArray[0]);
|
words.add(tempArray[0]);
|
||||||
split.add(tempArray[1]);
|
split.add(tempArray[1]);
|
||||||
log.log(Level.INFO, tempArray[0]);
|
|
||||||
log.log(Level.INFO, tempArray[1]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//If the word is not too long to fit
|
//If the word is not too long to fit
|
||||||
len += wordLength;
|
len += wordLength;
|
||||||
log.log(Level.INFO, String.valueOf(len));
|
|
||||||
if( len < 316)
|
if( len < 316)
|
||||||
words.add(split.remove(0));
|
words.add(split.remove(0));
|
||||||
}
|
}
|
||||||
//Merge them and add them to the output array.
|
//Merge them and add them to the output array.
|
||||||
log.log(Level.INFO, etc.combineSplit(0,
|
|
||||||
words.toArray(new String[out.size()]), " "));
|
|
||||||
out.add( etc.combineSplit(0,
|
out.add( etc.combineSplit(0,
|
||||||
words.toArray(new String[out.size()]), " ") );
|
words.toArray(new String[out.size()]), " ") );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user