From ef9f6da935d9d0636878750be3a642cfe88e8482 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 22 Dec 2019 18:40:55 +1100 Subject: [PATCH] SPIGOT-5471: Allow empty title/author for books By: md_5 --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java index 6e2475b40e..ab7e3ba637 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java @@ -163,12 +163,12 @@ public class CraftMetaBook extends CraftMetaItem implements BookMeta { @Override public boolean hasAuthor() { - return !Strings.isNullOrEmpty(author); + return this.author != null; } @Override public boolean hasTitle() { - return !Strings.isNullOrEmpty(title); + return this.title != null; } @Override