mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-228: Don't deserialize meta of written books twice
By: FrozenBrain <carstenbamsti@gmail.com>
This commit is contained in:
parent
7cbb980dac
commit
2f16839e81
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user