Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-228: Don't deserialize meta of written books twice
Dieser Commit ist enthalten in:
Ursprung
6fab8fe51e
Commit
618abf7a36
@ -54,15 +54,6 @@ class CraftMetaBookSigned extends CraftMetaBook implements BookMeta {
|
|||||||
|
|
||||||
CraftMetaBookSigned(Map<String, Object> map) {
|
CraftMetaBookSigned(Map<String, Object> map) {
|
||||||
super(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
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren