Importing invalid custom crosshair crashes LabyMod
Descrizione
Description:
While playing around with the LabyMod Client and the addons again. I noticed an issue with the "Custom Crosshair" Addon. When entering invalid data into the copied text when sharing the created crosshair and then tries to import it, the client will crash for the player.
Reproduction steps:
- Launch LabyMod in any version.
- Make sure you have the "Custom Crosshair" Addon installed.
- Navigate to the "Cusstom Crosshair" setting to create your own crosshair.
- Notice when importing this crosshair **LMCH-D/////////////////////////////////////8B **it will fill out all blocks without any issues.
- Notice now when importing this crosshair **LMCH-D/////////////////////////////////////100 **that it will cause the client to crash for the player.
Observed result:
Importing invalid crosshair data causes the client to crash.
Expected result:
A proper exception should be implemented in order to prevent such crashes.
**Crashlog: **https://paste.labymod.net/ukorihuwuh
Operating System: Windows 10
LabyMod Version: 4.1.12+1051 snapshot/89b09152
Minecraft Version: 1.20.4
Installed Addons: Flux, Custom Crosshair