188.8.131.52 Beta, 184.108.40.206 Beta, 1.18.2 Hotfix
When running the /clear command on a player to remove all of their items, they're still able to prevent some items from being cleared by putting them into the crafting grid in their inventory.
This bug also existed in Java Edition and was fixed in 20w07a:
Steps to Reproduce:
- Place a command block
- Type the following command into the command block: /clear @p
- Place a button that activates the command block after some time (e.g. by using repeaters)
- Press the button
- Open your inventory and put an item into the crafting grid
- Wait for the /clear command to run
The item in the crafting grid is not cleared.
The item should be cleared.