"inventory_changed" does not trigger when swapping item into offhand from GUI
Bug:
Recipes and advancements using the "inventory_changed" trigger do not activate when a player swaps an item into their offhand from inside a chest or other GUI.
Steps to Reproduce:
- Place a chest with an Oak Log inside.
- Clear all recipes and advancements:
/advancement revoke @s everything /recipe take @s *
- Open the chest and swap the Oak Log into your offhand.
Expected Behavior:
You unlock new recipes for collecting the Oak Log immediately.
Observed Behavior:
You do not unlock the recipes until you close the chest or swap the item into a different slot.