mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 20:22:05 -07:00
SPIGOT-5471: Allow empty title/author for books
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user