From 85106731bf9966a847dd7669b4fe59ae836f387e Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 22 Dec 2019 18:40:55 +1100 Subject: [PATCH] SPIGOT-5471: Allow empty title/author for books --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java index 6e2475b40e..ab7e3ba637 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java +++ b/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