SPIGOT-228: Don't deserialize meta of written books twice

This commit is contained in:
FrozenBrain 2014-12-16 15:05:43 +01:00 committed by md_5
parent 6fab8fe51e
commit 618abf7a36

View File

@ -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