Fixed cItem::IsStackableWith()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1547 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user