Made ItemStack .equals take into account data and enchantments

This commit is contained in:
Nathan Adams 2011-11-27 02:25:12 +00:00
parent aba0bbc70f
commit 24804f6419

View File

@ -200,7 +200,7 @@ public class ItemStack implements Serializable, ConfigurationSerializable {
ItemStack item = (ItemStack) obj; ItemStack item = (ItemStack) obj;
return item.getAmount() == getAmount() && item.getTypeId() == getTypeId(); return item.getAmount() == getAmount() && item.getTypeId() == getTypeId() && getDurability() == item.getDurability() && getEnchantments().equals(item.getEnchantments());
} }
@Override @Override