MinecraftTAS / LoTAS

Low Optimization Tool Assisted Speedrun Mod 1.8.9-1.20.1
https://minecrafttas.com
GNU General Public License v3.0
51 stars 10 forks source link

[1.20.1] Typing in fields doesn't work #116

Closed ScribbleTAS closed 1 year ago

ScribbleTAS commented 1 year ago

Custom tickrate and naming savestate

ScribbleTAS commented 1 year ago

The issue lies in the fact that 1.20 introduced a new field for textfields called "canLooseFocus" which default to true. When the textfield spawns, the textfield will be automatically unfocused.

Setting canLooseFocus to false, automatically selects the textfield which is the same behaviour as 1.19.4

On that note, I only found this out by comparing the EditBox class by hand, to see what changed, because the "focused" field would magically unselect in 1.20.1