diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-04 13:54:44 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-04 13:54:44 +0200 |
commit | dcc3af0704f63caefd39d8488f8c6ff28c208bfd (patch) | |
tree | db55bd48c83bc55d37f80a8a108beabbb938ec1c /source/Enchantments.cpp | |
parent | ItemGrid: fixed changing item count when ToRemove == CurrentCount (diff) | |
download | cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.gz cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.bz2 cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.lz cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.xz cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.tar.zst cuberite-dcc3af0704f63caefd39d8488f8c6ff28c208bfd.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Enchantments.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Enchantments.cpp b/source/Enchantments.cpp index 4802db3f7..57079b734 100644 --- a/source/Enchantments.cpp +++ b/source/Enchantments.cpp @@ -194,6 +194,15 @@ int cEnchantments::StringToEnchantmentID(const AString & a_EnchantmentName) +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
|