diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-01-19 16:38:59 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-01-19 16:38:59 +0100 |
commit | e14ddff1c00919f1416bfa6da9568e2dff419559 (patch) | |
tree | e05c7c0e5219c165f0f9335726e00ebadab4440c /src/WorldStorage/WSSAnvil.cpp | |
parent | Merge pull request #552 from worktycho/c++11 (diff) | |
download | cuberite-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/WSSAnvil.cpp')
-rw-r--r-- | src/WorldStorage/WSSAnvil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp index 16513cd1b..702b809fb 100644 --- a/src/WorldStorage/WSSAnvil.cpp +++ b/src/WorldStorage/WSSAnvil.cpp @@ -7,6 +7,7 @@ #include "WSSAnvil.h" #include "NBTChunkSerializer.h" #include "FastNBT.h" +#include "EnchantmentSerializer.h" #include "zlib/zlib.h" #include "../World.h" #include "../BlockID.h" @@ -639,7 +640,7 @@ bool cWSSAnvil::LoadItemFromNBT(cItem & a_Item, const cParsedNBT & a_NBT, int a_ int EnchTag = a_NBT.FindChildByName(TagTag, EnchName); if (EnchTag > 0) { - a_Item.m_Enchantments.ParseFromNBT(a_NBT, EnchTag); + cEnchantmentSerializer::ParseFromNBT(a_Item.m_Enchantments, a_NBT, EnchTag); } return true; |