mojira.dev
MC-308630

Changing whether commands are enabled does not properly update the state of the "Game Rules" button in the World Options screen

When clicking on the Allow Commands button in the World Options screen, it changes the permissions that the current user has. The user needs to have commands turned on to edit the game rules. When enabling/disabling commands, it doesn’t immediately change the state of the Edit Game Rules button. This can lead to an endless loading screen if commands were enabled when opening the World Options screen, the user turned them off and then clicked on the Edit Game Rules button.

Steps to reproduce:

  1. Create a new world with commands off

  2. Open the World Options screen and turn commands on

  3. Notice how the Edit Game Rules button stays disabled

  4. Close the World Options screen and reopen it

  5. Turn commands off

  6. Click on the Edit Game Rules button and notice the endless loading screen

Expected Behavior:

The state of the Edit Game Rules button should change as the permissions the current player has changes. When the user has commands disabled, the button should be disabled. When the user has commands enabled, the button should be enabled.

Observed Behavior:

The state of the Edit Game Rules button become out of sync with the permissions of the player when the player changes whether commands are enabled on the World Options screen.

Attachments

Comments 2

Thank you for helping us improve Minecraft! We saved your files:

[media]

Illusioner2520

(Unassigned)

Confirmed

Platform HC

Normal

UI

26.2 Pre-Release 4

26.2 Pre-Release 5

Retrieved