summaryrefslogtreecommitdiffstats
path: root/source/Enchantments.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 13:59:20 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-04 13:59:20 +0200
commit4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e (patch)
treecaafcd717a5b7830fd04d27a0b51d777361267b6 /source/Enchantments.cpp
parentAdded cItem copy-constructor to Lua API, made cItem::IsEqual() and IsStackable() enchantment-aware (diff)
downloadcuberite-4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e.tar
cuberite-4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e.tar.gz
cuberite-4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e.tar.bz2
cuberite-4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e.tar.lz
cuberite-4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e.tar.xz
cuberite-4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e.tar.zst
cuberite-4b17c3ac1a3e34e22e53ac5db247fb32c5a49c0e.zip
Diffstat (limited to 'source/Enchantments.cpp')
-rw-r--r--source/Enchantments.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Enchantments.cpp b/source/Enchantments.cpp
index 57079b734..08a24d8f3 100644
--- a/source/Enchantments.cpp
+++ b/source/Enchantments.cpp
@@ -203,6 +203,15 @@ bool cEnchantments::operator ==(const cEnchantments & a_Other) const
+bool cEnchantments::operator !=(const cEnchantments & a_Other) const
+{
+ return m_Enchantments != a_Other.m_Enchantments;
+}
+
+
+
+
+
void cEnchantments::WriteToNBTCompound(cFastNBTWriter & a_Writer, const AString & a_ListTagName) const
{
// Write the enchantments into the specified NBT writer