Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-5471: Allow empty title/author for books
Dieser Commit ist enthalten in:
Ursprung
2d9db47fb5
Commit
85106731bf
@ -163,12 +163,12 @@ public class CraftMetaBook extends CraftMetaItem implements BookMeta {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasAuthor() {
|
public boolean hasAuthor() {
|
||||||
return !Strings.isNullOrEmpty(author);
|
return this.author != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasTitle() {
|
public boolean hasTitle() {
|
||||||
return !Strings.isNullOrEmpty(title);
|
return this.title != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren