[1.7] Cooking Pot drops result item before recipe is done

Summary

Breaking a Cooking Pot while a recipe is still in progress causes the preview result item to drop, even though the recipe hasn't finished yet. In addition, the input ingredients are not consumed, which leads to an infinite duplication exploit.

Steps to reproduce

  1. Place a campfire_pot on top of a minecraft:campfire to transform into a cobblemon:campfire
  2. Start a recipe that takes a few seconds to finish
  3. While the recipe is still progressing (before completion), break the campfire block
  4. Observe the output and inventory

What is the current bug behavior?

The item that would be crafted is dropped, even though the crafting isn't complete. The input items used in the recipe are not consumed, enabling infinite duplication.

What is the expected correct behavior?

Breaking the pot early should not drop the result item, and the ingredients should either be returned or consumed appropriately based on progress.

Cobblemon Version and Mod Loader

Cobblemon 1.7.0-SNAPSHOT (Fabric and NeoForge)

Mods used besides Cobblemon

CobbleFurnies (testing the Cooking Pot integration system) Other mods not related to cooking were also present, but not relevant to the issue. The issue was also reproduced on a clean Cobblemon installation with no other mods, confirming it's not caused by external interference.

Relevant logs, screenshots and/or videos

N/A — bug can be reproduced easily in a clean instance.

Additional Information

We encountered this bug while integrating Cobblemon’s Cooking Pot system into our mod CobbleFurnies. During testing, we noticed that the result item drops early and the ingredients are not consumed, which results in an unintended duplication exploit.