mojira.dev
MC-313498

The game crashes when switching from Creative mode to Spectator mode with the "Survival Inventory" tab open and clicking certain slots

The game crashes when changing the game mode in survival inventory from creative mode to spectator mode and clicking certain slots. This did not happen in 26.3.

How to reproduce:

  1. Create a new creative mode world

  2. Open your inventory and go to the survival inventory

  3. Press F3 + N to change your game mode to spectator mode and click the offhand slot or 7th/8th/9th hotbar slot

  4. The game crashes.

Attachments

Comments 2

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

[media][media]

player.containerMenu being set to its ItemPickerMenu

After the gamemode change, containerTick() is opening InventoryScreen without restoring player.containerMenu

The normal inventory ends up sending slot 44 to the old creative menu, which only has 42 slots. Crash

yalming22

(Unassigned)

Confirmed

Crash

26.4 Snapshot 10

Retrieved