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.