mojira.dev
MC-313511

`/advancement grant` and `/advancement revoke` count advancements that were already granted or revoked

The Bug:

/advancement grant and /advancement revoke count advancements that were already granted or revoked.

The message shown by /advancement grant and /advancement revoke only counts the players whose advancements are changed, and the command fails when nothing is changed at all (MC-123068). However, when only some of the selected advancements are changed, the message still counts every selected advancement, therefore introducing an inconsistency.

Steps to Reproduce:

  1. Revoke the "Stone Age" advancement by using the command provided below.

    /advancement revoke @s only minecraft:story/mine_stone
  2. Grant yourself the "Minecraft" advancement by using the command provided below.

    /advancement grant @s only minecraft:story/root
  3. Grant yourself the "Stone Age" advancement and all of the advancements before it by using the command provided below.

    /advancement grant @s until minecraft:story/mine_stone
  4. Observe if the message in chat says that 2 advancements were granted.

Observed Behavior:

/advancement grant and /advancement revoke count advancements that were already granted or revoked.

Expected Behavior:

/advancement grant and /advancement revoke would only count the advancements that they change.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Commands

26.3, 26.4 Snapshot 10

Retrieved