From 618abf7a36569108bca2ba0cfa9a13ed3efa2449 Mon Sep 17 00:00:00 2001 From: FrozenBrain Date: Tue, 16 Dec 2014 15:05:43 +0100 Subject: [PATCH] SPIGOT-228: Don't deserialize meta of written books twice --- .../craftbukkit/inventory/CraftMetaBookSigned.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java index 8c3d3a4405..5790776680 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java @@ -54,15 +54,6 @@ class CraftMetaBookSigned extends CraftMetaBook implements BookMeta { CraftMetaBookSigned(Map map) { super(map); - - setAuthor(SerializableMeta.getString(map, BOOK_AUTHOR.BUKKIT, true)); - - setTitle(SerializableMeta.getString(map, BOOK_TITLE.BUKKIT, true)); - - Iterable pages = SerializableMeta.getObject(Iterable.class, map, BOOK_PAGES.BUKKIT, true); - CraftMetaItem.safelyAdd(pages, this.pages, MAX_PAGE_LENGTH); - - generation = SerializableMeta.getObject(Integer.class, map, GENERATION.BUKKIT, true); } @Override