mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 22:06:22 +02:00
Fix bug with empty motd
This commit is contained in:
@@ -36,7 +36,7 @@ public class TextPager
|
|||||||
{
|
{
|
||||||
//If an info file starts with a chapter title, list the chapters
|
//If an info file starts with a chapter title, list the chapters
|
||||||
//If not display the text up until the first chapter.
|
//If not display the text up until the first chapter.
|
||||||
if (lines.get(0).startsWith("#"))
|
if (!lines.isEmpty() && lines.get(0).startsWith("#"))
|
||||||
{
|
{
|
||||||
if (onePage)
|
if (onePage)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user