Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-251245

Title persists between switching servers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.2
    • None
    • Unconfirmed
    • (Unassigned)

      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();
      } 

            Unassigned Unassigned
            isXander Xander Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: