Affects Version/s: 20w07a, 20w08a, 20w09a, 20w10a, 20w12a, 20w13b, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a
Fix Version/s: 20w22a
This was caused by the fix for
- Insert the following command in a repeating command block and power it
- Go into survival
- Get any other item in your inventory and move it into the crafting slots
The item gets cleared even though it is not a diamond
The reason for this is that the method net.minecraft.server.commands.ClearInventoryCommand#clearInventory(CommandSourceStack, Collection, Predicate, int) simply calls InventoryMenu#clearCraftingContent() without making use of the ItemPredicateArgument or the maxCount properties.