Title persists between switching servers
When a title is sent to the client, and then the client disconnects whilst displaying that title. When the user logs into another server, that title persists.
Steps to reproduce
- Use the command /title @s title "bug"
- Log out while it is being displayed
- Log into another world
- Observe title still present
Code analysis
Quilt mappings 1.18.2
In the "clear" function in InGameHud, set title to null and reset the delay, like the ClearTitle packet.
public void clear() { this.playerListHud.clear(); this.bossBarHud.clear(); this.client.getToastManager().clear(); this.client.options.debugEnabled = false; this.chatHud.clear(true); // add below code this.clearTitle(); this.setDefaultTitleFade(); }
2022-05-02, 03:11 PM
2022-05-02, 03:19 PM
2022-05-02, 03:14 PM
0
1
-