summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-03-22 14:18:48 +0100
committerLukas Pioch <lukas@zgow.de>2017-03-22 14:21:48 +0100
commitfd6faedd55ed8f4870b96392482ea884b66c5761 (patch)
tree2a101a64786cb32ec8ba798180971f993ba70233
parentFireworks can be fired from a dispenser (diff)
downloadcuberite-fd6faedd55ed8f4870b96392482ea884b66c5761.tar
cuberite-fd6faedd55ed8f4870b96392482ea884b66c5761.tar.gz
cuberite-fd6faedd55ed8f4870b96392482ea884b66c5761.tar.bz2
cuberite-fd6faedd55ed8f4870b96392482ea884b66c5761.tar.lz
cuberite-fd6faedd55ed8f4870b96392482ea884b66c5761.tar.xz
cuberite-fd6faedd55ed8f4870b96392482ea884b66c5761.tar.zst
cuberite-fd6faedd55ed8f4870b96392482ea884b66c5761.zip
-rwxr-xr-xsrc/WorldStorage/WSSAnvil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index 2bf11d3f4..54ee5b1da 100755
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -814,8 +814,8 @@ bool cWSSAnvil::LoadItemFromNBT(cItem & a_Item, const cParsedNBT & a_NBT, int a_
}
// Load firework data:
- int FireworksTag = a_NBT.FindChildByName(TagTag, ((a_Item.m_ItemType == E_ITEM_FIREWORK_STAR) ? "Fireworks" : "Explosion"));
- if (EnchTag > 0)
+ int FireworksTag = a_NBT.FindChildByName(TagTag, ((a_Item.m_ItemType == E_ITEM_FIREWORK_STAR) ? "Explosion" : "Fireworks"));
+ if (FireworksTag > 0)
{
cFireworkItem::ParseFromNBT(a_Item.m_FireworkItem, a_NBT, FireworksTag, static_cast<ENUM_ITEM_ID>(a_Item.m_ItemType));
}