mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-06 15:50:43 +00:00
Fix bug with empty motd
This commit is contained in:
parent
da216b05d9
commit
313fd30ce9
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ public class TextPager
|
|||
{
|
||||
//If an info file starts with a chapter title, list the chapters
|
||||
//If not display the text up until the first chapter.
|
||||
if (lines.get(0).startsWith("#"))
|
||||
if (!lines.isEmpty() && lines.get(0).startsWith("#"))
|
||||
{
|
||||
if (onePage)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue