mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-12 09:51:12 +01:00
SPIGOT-5409: Remove unnecessary defaulting in CraftMetaBookSigned
This commit is contained in:
parent
821238b64c
commit
5c9e723692
1 changed files with 0 additions and 6 deletions
|
@ -56,14 +56,10 @@ class CraftMetaBookSigned extends CraftMetaBook implements BookMeta {
|
||||||
|
|
||||||
if (hasTitle()) {
|
if (hasTitle()) {
|
||||||
itemData.setString(BOOK_TITLE.NBT, this.title);
|
itemData.setString(BOOK_TITLE.NBT, this.title);
|
||||||
} else {
|
|
||||||
itemData.setString(BOOK_TITLE.NBT, " ");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasAuthor()) {
|
if (hasAuthor()) {
|
||||||
itemData.setString(BOOK_AUTHOR.NBT, this.author);
|
itemData.setString(BOOK_AUTHOR.NBT, this.author);
|
||||||
} else {
|
|
||||||
itemData.setString(BOOK_AUTHOR.NBT, " ");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasPages()) {
|
if (hasPages()) {
|
||||||
|
@ -79,8 +75,6 @@ class CraftMetaBookSigned extends CraftMetaBook implements BookMeta {
|
||||||
|
|
||||||
if (generation != null) {
|
if (generation != null) {
|
||||||
itemData.setInt(GENERATION.NBT, generation);
|
itemData.setInt(GENERATION.NBT, generation);
|
||||||
} else {
|
|
||||||
itemData.setInt(GENERATION.NBT, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue