13
0
geforkt von Mirrors/Paper

SPIGOT-5409: Remove unnecessary defaulting in CraftMetaBookSigned

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2019-12-05 10:28:16 +11:00
Ursprung 5aa1f5b5e8
Commit e7370ab173

Datei anzeigen

@ -56,14 +56,10 @@ class CraftMetaBookSigned extends CraftMetaBook implements BookMeta {
if (hasTitle()) {
itemData.setString(BOOK_TITLE.NBT, this.title);
} else {
itemData.setString(BOOK_TITLE.NBT, " ");
}
if (hasAuthor()) {
itemData.setString(BOOK_AUTHOR.NBT, this.author);
} else {
itemData.setString(BOOK_AUTHOR.NBT, " ");
}
if (hasPages()) {
@ -79,8 +75,6 @@ class CraftMetaBookSigned extends CraftMetaBook implements BookMeta {
if (generation != null) {
itemData.setInt(GENERATION.NBT, generation);
} else {
itemData.setInt(GENERATION.NBT, 0);
}
}