[2.0.76] Crash using [sprite] rich text (TextRenderer::getSubstringWidth)
Posted: Mon Apr 13, 2026 8:40 pm
- Create a new world
- Input the following commands, in order
- Game crashes
- Input the following commands, in order
Code: Select all
/c game.player.gui.screen.add{type = "label", name = "label", caption = "[sprite][/sprite]"}
/c game.player.gui.screen.label.caption = "[sprite=]d[/sprite]"
/c game.player.gui.screen.label.caption = "[sprite=][][/sprite]"
/c game.player.gui.screen.label.caption = "[sprite=][/sprite]"
/c game.player.gui.screen.label.caption = "[sprite=]dhawudhuiaw[/sprite]"