mojira.dev
MC-174958

/gamerule succeeds when the value is not changed

The bug

/gamerule _rule_ <value> succeeds even though <value> equals the current value. This behavior is inconsistent with other commands: /bossbar, /team, and /data.

How to reproduce

  1. /gamerule maxCommandChainLength 2
    /gamerule maxCommandChainLength 2

    → ✔ Gamerule maxCommandChainLength is now set to: 2

  2. /gamerule maxCommandChainLength 2
    /gamerule maxCommandChainLength 2

    → ❌ Gamerule maxCommandChainLength is now set to: 2

Attachments

Comments 3

Can confirm in 1.19.

Can confirm in 1.19.2.

intsuc

(Unassigned)

Confirmed

Commands

1.15.2, 20w11a, 20w12a, 20w14a, 20w16a, ..., 1.20.2, 23w42a, 1.21.1, 24w33a, 25w03a

Retrieved