diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-08-03 11:14:53 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-08-27 14:54:42 +0200 |
commit | 2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb (patch) | |
tree | 3cb4afd2603360ba5927febc1b6ec7311b6673da /src/Protocol/Protocol_1_9.cpp | |
parent | APIDcoc: Added return value in constructor, AString as ref and updated comment (diff) | |
download | cuberite-2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb.tar cuberite-2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb.tar.gz cuberite-2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb.tar.bz2 cuberite-2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb.tar.lz cuberite-2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb.tar.xz cuberite-2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb.tar.zst cuberite-2d2bfcdbd8a80fd5f7c74d34479ff1e2ca6d02fb.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_9.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_9.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp index aba0a9d01..1ee0f450e 100644 --- a/src/Protocol/Protocol_1_9.cpp +++ b/src/Protocol/Protocol_1_9.cpp @@ -3066,6 +3066,12 @@ void cProtocol_1_9_0::ParseItemMetadata(cItem & a_Item, const AString & a_Metada return; } + if ((a_Item.m_ItemType == E_ITEM_WRITTEN_BOOK) || (a_Item.m_ItemType == E_ITEM_BOOK_AND_QUILL)) + { + cBookContent::ParseFromNBT(0, a_Item.m_BookContent, NBT); + return; + } + // Load enchantments and custom display names from the NBT data: for (int tag = NBT.GetFirstChild(NBT.GetRoot()); tag >= 0; tag = NBT.GetNextSibling(tag)) { |