mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
SPIGOT-5471: Allow empty title/author for books
This commit is contained in:
parent
2d9db47fb5
commit
85106731bf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue