From 7467645bcd3ef107b4df6040c5d368fb35bd8766 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Wed, 10 Aug 2022 00:35:34 +0200 Subject: [PATCH] Fixes an incorrect boolean --- .../net/knarcraft/bookswithoutborders/utility/BookHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/bookswithoutborders/utility/BookHelper.java b/src/main/java/net/knarcraft/bookswithoutborders/utility/BookHelper.java index 140ee60..84451bd 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/utility/BookHelper.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/utility/BookHelper.java @@ -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";