mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fix § at end of line
This commit is contained in:
parent
8777410d30
commit
284d7a23ca
1 changed files with 4 additions and 4 deletions
|
@ -54,7 +54,9 @@ public class BookPager
|
||||||
|
|
||||||
while (pointer < lineLength)
|
while (pointer < lineLength)
|
||||||
{
|
{
|
||||||
if (length >= max)
|
Character letter = pageLine.charAt(pointer);
|
||||||
|
|
||||||
|
if (length >= max || (letter == '\u00a7' && length - 1 >= max))
|
||||||
{
|
{
|
||||||
tempLine = pageLine.substring(start, pointer);
|
tempLine = pageLine.substring(start, pointer);
|
||||||
pageLines.add(tempLine);
|
pageLines.add(tempLine);
|
||||||
|
@ -62,8 +64,6 @@ public class BookPager
|
||||||
length = 0;
|
length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Character letter = pageLine.charAt(pointer);
|
|
||||||
|
|
||||||
if (letter == '\u00a7')
|
if (letter == '\u00a7')
|
||||||
{
|
{
|
||||||
Character nextLetter = pageLine.charAt(pointer + 1);
|
Character nextLetter = pageLine.charAt(pointer + 1);
|
||||||
|
|
Loading…
Reference in a new issue