mojira.dev
MC-313760

Opening a multi_action or dialog_list dialog with very large columns crashes the game

When a dialog with fewer buttons than columns is opened the game crashes.


Steps to reproduce:

  • Create a new vanilla singleplayer world.

  • Run the following command in chat:

    /dialog show @s {type:"minecraft:multi_action",title:"Crash",columns:2147483647,actions:[{label:"Click"}]}
  • Observe the game crash.


Observed result:
The game crashes

Expected result:
The columns count should be clamped to a reasonable maximum.

Comments 0

No comments.

BugTracker - BugTX

(Unassigned)

Unconfirmed

26.3

Retrieved