summaryrefslogtreecommitdiffstats
path: root/source/Item.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Item.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/Item.cpp b/source/Item.cpp
index 569d04980..fce4a431b 100644
--- a/source/Item.cpp
+++ b/source/Item.cpp
@@ -81,8 +81,15 @@ bool cItem::IsStackableWith(const cItem & a_OtherStack) const
{
return false;
}
+ if (a_OtherStack.m_ItemDamage != m_ItemDamage)
+ {
+ return false;
+ }
+ if (a_OtherStack.m_Enchantments != m_Enchantments)
+ {
+ return false;
+ }
- // TODO: match enchantments etc.
return true;
}