diff options
author | FrozenBrain <carstenbamsti@gmail.com> | 2014-12-16 15:05:43 +0100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-12-18 09:47:10 +1100 |
commit | 618abf7a36569108bca2ba0cfa9a13ed3efa2449 (patch) | |
tree | f0d9463159da6fcf6abc75736c054ef8af2e0175 /src/main/java | |
parent | 6fab8fe51ef2cc4e503f68a00cd38874c262c86b (diff) | |
download | craftbukkit-618abf7a36569108bca2ba0cfa9a13ed3efa2449.tar craftbukkit-618abf7a36569108bca2ba0cfa9a13ed3efa2449.tar.gz craftbukkit-618abf7a36569108bca2ba0cfa9a13ed3efa2449.tar.lz craftbukkit-618abf7a36569108bca2ba0cfa9a13ed3efa2449.tar.xz craftbukkit-618abf7a36569108bca2ba0cfa9a13ed3efa2449.zip |
SPIGOT-228: Don't deserialize meta of written books twice
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java | 9 |
1 files changed, 0 insertions, 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 8c3d3a44..57907766 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<String, Object> 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 |