Anybody craving duck?

Foie gras is back on California menus after a federal judge determined that it is not illegal to serve the delicacy if the dish is imported from out-of-state and transported by a third-party seller.

The feud over foie gras has a lengthy history in the Golden State, ever since lawmakers barred California farmers from producing the pate in 2004, The Associated Press reports.

Animal welfare activists who advocated for the ban argued that methods used to produce the rich dish are cruel, involving force-feeding a duck or goose a corn-based mixture through a tube down its throat.

Foie gras is torched and made into a Brulee at the Sent Sovi restaurant in Saratoga, Calif. (AP Photo/Marcio Jose Sanchez, File)

Foie gras is torched and made into a Brulee at the Sent Sovi restaurant in Saratoga, Calif. (AP Photo/Marcio Jose Sanchez, File)

MICHELIN STARRED CHEF GOES VIRAL AFTER PASSIONATELY COMPLAINING ABOUT 'THE WORST KIND OF GUEST'

Then, in 2015, U.S. District Judge Stephen V. Wilson ruled that state law contradicted the federal government’s Poultry Products Inspection Act, Eater Los Angeles reports. From there, the fattened bird liver could be sold and eaten – but not produced – in California.

In 2017, Ninth Circuit judges nixed the lower court's decision and said that the Golden State could indeed ban foie gras on grounds of animal cruelty, per Eater.

Last year, the Supreme Court declined to hear the case, leaving the foie gras ban to stand for 18 months.

FOLLOW US ON FACEBOOK FOR MORE FOX LIFESTYLE NEWS

On Tuesday, Wilson again ruled in favor of the plaintiffs, including farmers in New York and Canada. The litigants challenged part of the law that banned liver produced out of state from being sold. The judge said that the sale of foie gras doesn't violate California law if the seller is out-of-state and the product is given to a third-party delivery service, then imported.

In this 2012 file photo, chef and owner Josiah Slone, right, prepares a foie gras dish at Sent Sovi restaurant in Saratoga, Calif. Foie gras is back on the menu in California after a judge ruled the rich dish can't be prevented from being brought in from out of state. (AP Photo/Marcio Jose Sanchez, File)

In this 2012 file photo, chef and owner Josiah Slone, right, prepares a foie gras dish at Sent Sovi restaurant in Saratoga, Calif. Foie gras is back on the menu in California after a judge ruled the rich dish can't be prevented from being brought in from out of state. (AP Photo/Marcio Jose Sanchez, File)

“There is no principled way to distinguish between foie gras purchased out of state and transported into California by the purchaser and that which is delivered by a third party,” Wilson wrote, per the AP.

“We are gratified that the court recognized that California’s misguided ban was never intended to apply to foie gras products from out‐of‐state producers that are shipped to happy consumers in California,” said Marcus Henley, vice president of Hudson Valley Foie Gras, one of the plaintiffs.

CLICK HERE FOR FOX NEWS' CONTINUING CORONAVIRUS COVERAGE

The California attorney general's office intends to review the decision.

Last year, New York City banned restaurants and grocery stores from selling foie gras, in a policy effective in 2022. Chicago banned the luxury pate in 2006; the ordinance was repealed two years later.

The Associated Press contributed to this report.