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

Guardian beam is not rendered if targeted entity has ID 0, as it does not use the OptionalInt metadata type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.15.2, 20w17a
    • Fix Version/s: None
    • Confirmation Status:
      Unconfirmed
    • Category:
      Entities, Networking

      Description

      The bug

      The guardian beam is not rendered if the attacked entity has the entity id 0.  Guardians directly write the entity ID in an integer metadata field, and assume 0 means no target (unlike fireworks, which use an OptionalInt (MC-111480) to prevent this).

       

      Since entity IDs start at 1 after 19w05a, this is unlikely to cause problems in practice, but it is still weird that one entity uses OptionalInt and the other doesn't.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              pokechu22 [Mod] Pokechu22
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: