From 5c9e7236929b45d859f3595f7b70dbc5215e805e Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 5 Dec 2019 10:28:16 +1100 Subject: [PATCH] SPIGOT-5409: Remove unnecessary defaulting in CraftMetaBookSigned --- .../bukkit/craftbukkit/inventory/CraftMetaBookSigned.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java index e6ca5e707c..753bf7786d 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java @@ -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); } }