summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-19 16:38:59 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-19 16:38:59 +0100
commite14ddff1c00919f1416bfa6da9568e2dff419559 (patch)
treee05c7c0e5219c165f0f9335726e00ebadab4440c /src/WorldStorage/NBTChunkSerializer.cpp
parentMerge pull request #552 from worktycho/c++11 (diff)
downloadcuberite-e14ddff1c00919f1416bfa6da9568e2dff419559.tar
cuberite-e14ddff1c00919f1416bfa6da9568e2dff419559.tar.gz
cuberite-e14ddff1c00919f1416bfa6da9568e2dff419559.tar.bz2
cuberite-e14ddff1c00919f1416bfa6da9568e2dff419559.tar.lz
cuberite-e14ddff1c00919f1416bfa6da9568e2dff419559.tar.xz
cuberite-e14ddff1c00919f1416bfa6da9568e2dff419559.tar.zst
cuberite-e14ddff1c00919f1416bfa6da9568e2dff419559.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index e1205f2be..51e1a8d1b 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -4,6 +4,7 @@
#include "Globals.h"
#include "NBTChunkSerializer.h"
+#include "EnchantmentSerializer.h"
#include "../BlockID.h"
#include "../ItemGrid.h"
#include "../StringCompression.h"
@@ -91,7 +92,7 @@ void cNBTChunkSerializer::AddItem(const cItem & a_Item, int a_Slot, const AStrin
{
const char * TagName = (a_Item.m_ItemType == E_ITEM_BOOK) ? "StoredEnchantments" : "ench";
m_Writer.BeginCompound("tag");
- a_Item.m_Enchantments.WriteToNBTCompound(m_Writer, TagName);
+ cEnchantmentSerializer::WriteToNBTCompound(a_Item.m_Enchantments, m_Writer, TagName);
m_Writer.EndCompound();
}