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

Clientbound play packet 0x0C (Boss Bar) using same byte for different booleans

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w30b
    • Minecraft 1.12.2, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07b, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w10b, Minecraft 18w10c, Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19a, Minecraft 18w19b, Minecraft 18w20a, Minecraft 18w20b, Minecraft 18w20c, Minecraft 18w21a, Minecraft 18w21b, Minecraft 18w22a, Minecraft 18w22b, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre3
    • None
    • Confirmed

      Clientbound play packet 0x0C (Boss Bar) uses the same byte value ('2') for two different booleans.

          private void setFlags(final int flags) {
              this.darkenSky = (flags & 1) > 0;
              this.playEndBossMusic = (flags & 2) > 0;
              this.createFog = (flags & 2) > 0;
          }
      
          private int getFlags() {
              int i = 0;
              if (this.darkenSky) {
                  i |= 1;
              }
              if (this.playEndBossMusic) {
                  i |= 2;
              }
              if (this.createFog) {
                  i |= 2;
              }
              return i;
          }
      

            grum [Mojang] Grum (Erik Broes)
            kashike [Mod] Riley Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: