Hey, found a performance regression in InstantCraft 3.1.0 that crashed our server.
**Issue:**
With "Split crafted stacks": true (the default), OnItemCraft calls FinishCrafting() once per craft unit:
```
while (task.amount > 0)
owner.inventory.crafting.FinishCrafting(task);
```
A big batch craft like 5000 gunpowder = 500 FinishCrafting calls in a single tick. Each one creates and gives an item, sends note.craft_done and fires OnItemCraftFinished in every other plugin. We saw OnItemCraft at ~600ms per call (4s+ average) and the server froze/crashed when a player queued gunpowder. 3.0.0 used one FinishCrafting call per craft and had no problem.
**Repro:** default config, instantcraft.use, craft a few max batches of gunpowder back to back.
**Suggested fix:**
1. For items without condition, call FinishCrafting once per full stack instead of once per unit (amountToCreate = n * blueprintAmount, task.amount -= n - 1, with n = stackable / amountToCreate). Only items with condition need the per-unit loop.
2. Add a guard that breaks the loop if task.amount doesn't go down after FinishCrafting, so it can never hang the server.
3. Wrap the amountToCreate change in try/finally. It modifies the shared ItemBlueprint, so if a hook throws, the blueprint stays wrong for every player until restart.
With this patched locally, a 15 x 999 gunpowder craft doesn't even show up in hook timings. Happy to share the patched OnItemCraft if useful.
Thanks for the plugin!