Disconnected screen text has many widget locator ids
Codestian opened this issue · 0 comments
Describe the bug
On the disconnected screen, there are 2 texts indicating the error and message. For example, 'Failed to connect to the server' is followed by 'Unknown host'. Another is 'Failed to connect to the server', followed by 'Outdated client!'. The first text appears to be consistent, but the latter isn't fixed. This means the texts have dynamic widget locator id. So if i delete both texts, the second text will reappear if its a different error message. For example, the same text widget locator id is disconnected_screen:430498 on one instance, then disconnected_screen:320454.
To Reproduce
Steps to reproduce the behavior (e.g.):
- Attempt to enter server with invalid ip address (hellotest.com)
- This will show error message 'Unknown host'.
- In the layout editor, remove the 'Unknown host' text and save.
- Open the logs window to observe the error logs in the next few steps.
- Attempt to enter a 1.21.1 server with 1.19.4.
- This will show error message 'Outdated client! Please use 1.21.1'.
- In the layout editor, remove the 'Outdated client! Please use 1.21.1' text.
- Enter the server with the invalid ip address again. The error message now shows again.
- The logs will then spam the following until the user exits the screen:
[FANCYMENU] Unable to get label/text of Vanilla widget via placeholder! Vanilla element not found: disconnected_screen:430498
Expected behavior
When I delete both texts, they should not reappear again.
Game Log
latest.log
Screenshots
If screenshots would help to explain the issue, please include these.
If i delete the vanilla 'Unknown hosts' text, then reproduce the 'Outdated client' message, the 'Outdated client' message should also disappear, since its the same text. But it appears because it has a different id.
Basic Informations (please complete the following information):
- OS: macOS 14.5
- FancyMenu Version: 3.2.5
- Fabric 0.16.5
- Minecraft Version 1.21.1
- Active Mods [e.g. Optifine, 5zig, TooManyItems]