diff --git a/Essentials/src/com/earth2me/essentials/textreader/BookPager.java b/Essentials/src/com/earth2me/essentials/textreader/BookPager.java index 08da0991e..3f974fe32 100644 --- a/Essentials/src/com/earth2me/essentials/textreader/BookPager.java +++ b/Essentials/src/com/earth2me/essentials/textreader/BookPager.java @@ -64,7 +64,7 @@ public class BookPager length = 0; } - if (letter == '\u00a7') + if (letter == '\u00a7' && pointer + 1 < lineLength) { Character nextLetter = pageLine.charAt(pointer + 1); if (nextLetter == 'l' || nextLetter == 'L')