Added cItem copy-constructor to Lua API, made cItem::IsEqual() and IsStackable() enchantment-aware
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1546 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user