summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WSSAnvil.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-09 22:43:15 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-09 22:43:15 +0100
commit1985a9c33edc5b929f88871ce553b148408571af (patch)
tree08124cd9f2ea2171710b2dfb764d6b7dfee5701f /src/WorldStorage/WSSAnvil.cpp
parentMentiod that we use some c++11 exstensions (diff)
parent!= FACE_NONE (diff)
downloadcuberite-1985a9c33edc5b929f88871ce553b148408571af.tar
cuberite-1985a9c33edc5b929f88871ce553b148408571af.tar.gz
cuberite-1985a9c33edc5b929f88871ce553b148408571af.tar.bz2
cuberite-1985a9c33edc5b929f88871ce553b148408571af.tar.lz
cuberite-1985a9c33edc5b929f88871ce553b148408571af.tar.xz
cuberite-1985a9c33edc5b929f88871ce553b148408571af.tar.zst
cuberite-1985a9c33edc5b929f88871ce553b148408571af.zip
Diffstat (limited to 'src/WorldStorage/WSSAnvil.cpp')
-rw-r--r--src/WorldStorage/WSSAnvil.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index 680f2458f..07cf87ab3 100644
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -663,6 +663,12 @@ bool cWSSAnvil::LoadItemFromNBT(cItem & a_Item, const cParsedNBT & a_NBT, int a_
{
EnchantmentSerializer::ParseFromNBT(a_Item.m_Enchantments, a_NBT, EnchTag);
}
+
+ int FireworksTag = a_NBT.FindChildByName(TagTag, ((a_Item.m_ItemType == E_ITEM_FIREWORK_STAR) ? "Fireworks" : "Explosion"));
+ if (EnchTag > 0)
+ {
+ cFireworkItem::ParseFromNBT(a_Item.m_FireworkItem, a_NBT, FireworksTag, (ENUM_ITEM_ID)a_Item.m_ItemType);
+ }
return true;
}