SPIGOT-5471: Allow empty title/author for books

This commit is contained in:
md_5 committed 2019-12-22 18:40:55 +11:00
1 parent 2d9db47fb5
commit 85106731bf
1 file changed
+2 -2
@@ -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