diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-27 00:29:14 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-27 00:33:52 +0100 |
commit | baf2d8892127cd6da9d2f6f2f8d991d617c87800 (patch) | |
tree | 2f3c2f8d3d9e2659f068e78017a934c195ba77f2 /src/Item.h | |
parent | Fixed a gcc warning in FastNBT.h. (diff) | |
download | cuberite-baf2d8892127cd6da9d2f6f2f8d991d617c87800.tar cuberite-baf2d8892127cd6da9d2f6f2f8d991d617c87800.tar.gz cuberite-baf2d8892127cd6da9d2f6f2f8d991d617c87800.tar.bz2 cuberite-baf2d8892127cd6da9d2f6f2f8d991d617c87800.tar.lz cuberite-baf2d8892127cd6da9d2f6f2f8d991d617c87800.tar.xz cuberite-baf2d8892127cd6da9d2f6f2f8d991d617c87800.tar.zst cuberite-baf2d8892127cd6da9d2f6f2f8d991d617c87800.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Item.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Item.h b/src/Item.h index cc3b3c961..4bdfb12dd 100644 --- a/src/Item.h +++ b/src/Item.h @@ -11,6 +11,7 @@ #include "Defines.h" #include "Enchantments.h" +#include "WorldStorage/FireworksSerializer.h" @@ -38,7 +39,8 @@ public: m_ItemCount(0), m_ItemDamage(0), m_CustomName(""), - m_Lore("") + m_Lore(""), + m_FireworkItem() { } @@ -57,7 +59,8 @@ public: m_ItemDamage (a_ItemDamage), m_Enchantments(a_Enchantments), m_CustomName (a_CustomName), - m_Lore (a_Lore) + m_Lore (a_Lore), + m_FireworkItem() { if (!IsValidItem(m_ItemType)) { @@ -77,7 +80,8 @@ public: m_ItemDamage (a_CopyFrom.m_ItemDamage), m_Enchantments(a_CopyFrom.m_Enchantments), m_CustomName (a_CopyFrom.m_CustomName), - m_Lore (a_CopyFrom.m_Lore) + m_Lore (a_CopyFrom.m_Lore), + m_FireworkItem(a_CopyFrom.m_FireworkItem) { } @@ -90,6 +94,7 @@ public: m_Enchantments.Clear(); m_CustomName = ""; m_Lore = ""; + m_FireworkItem.EmptyData(); } @@ -115,7 +120,8 @@ public: (m_ItemDamage == a_Item.m_ItemDamage) && (m_Enchantments == a_Item.m_Enchantments) && (m_CustomName == a_Item.m_CustomName) && - (m_Lore == a_Item.m_Lore) + (m_Lore == a_Item.m_Lore) && + m_FireworkItem.IsEqualTo(a_Item.m_FireworkItem) ); } @@ -177,6 +183,8 @@ public: cEnchantments m_Enchantments; AString m_CustomName; AString m_Lore; + + cFireworkItem m_FireworkItem; }; // tolua_end |