mojira.dev
MC-298104

The max_lines field of multiline text input control is unrestricted, lagging the game

Given that height is restricted to [1, 512], I expected that I wouldn’t be able to create a multiline edit box larger than 512 pixels by using max_height. However, max_height is not limited, allowing you to create really tall edit boxes, which lags the game immensly.

Since the height is calculated using 9 * max_height + 8 , I expected max_height to be limited to 56 (since 56*9+8 = 512)

How to reproduce

  1. /dialog show @s {type:"minecraft:simple_input_form",title:"Example",inputs:[{type:"minecraft:text",key:"foo",label:"Foo",multiline:{max_lines:500000000}}],action:{label:"",id:"",on_submit:{type:"minecraft:custom_form",id:"foo"}}}
  2. ❌ Notice that the game lags while the dialog is open. The terrain behind the dialog may start to flicker.

  3. After closing the dialog, chunk sometimes no longer render. Reloading the world does not fix the issue, you need to restart the game to get the chunks to render again.

Attachments

Comments 0

No comments.

Misode

boq

Confirmed

Platform

Normal

Commands, Data Packs, UI

25w21a

1.21.6 Pre-Release 2

Retrieved