Fixes an incorrect boolean

This commit is contained in:
Kristian Knarvik 2022-08-10 00:35:34 +02:00
parent 11108011a5
commit 7467645bcd

View File

@ -58,7 +58,7 @@ public final class BookHelper {
public static String getBookFile(BookMeta book, Player player) {
String titleAuthorSeparator = BooksWithoutBordersConfig.getTitleAuthorSeparator();
String bookName;
if (!book.hasTitle()) {
if (book.hasTitle()) {
bookName = book.getTitle();
} else {
bookName = "Untitled";