Spawning Arrow entities improperly tips them with water

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • git-Spigot-c529d43-9926d78 (MC: 1.14) (Implementing API version 1.14-R0.1-SNAPSHOT)
    • Yes

      This commit: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/67d908a9830c71267ee740f5bddd728ce9c64cc7#src/main/java/org/bukkit/entity/EntityType.java
      removed the "TIPPED_ARROW" entity type, and changed ARROW to be a reference to TippedArrow. They are still separate types internally, and should still both be available. These are indeed now separate types internally, however the spawning logic should be updated to reflect that an "Arrow" is normally just an arrow, not a tipped arrow (until a tip is added).
      The world#spawnArrow method will allow correctly spawning them separately using Arrow.class and TippedArrow.class ... the world#spawnEntity method, when fed EntityType.ARROW, will spawn an arrow that contains an invalid tip. When picked up, such arrows will display as "Arrow of Splashing" (a tipped arrow item with no potion effect to apply). They visible give off a water-blue potion particle.
      The correct behavior of course should be not having any tip until/unless a potion tip is set.

          [SPIGOT-4819] Spawning Arrow entities improperly tips them with water

          Mick Monkey added a comment -

          Actually yes, on closer review the NMS code does treat them as a single entity type now. Will update the issue accordingly.

          Mick Monkey added a comment - Actually yes, on closer review the NMS code does treat them as a single entity type now. Will update the issue accordingly.

          md_5 added a comment -

          Mcwiki disagrees with you that they are separate types, as does the code last time I looked at it

          http://minecraft.gamepedia.com/Entity

           

          Pretty sure the bug is invalid tipping, not the type being missing

           

          md_5 added a comment - Mcwiki disagrees with you that they are separate types, as does the code last time I looked at it http ://minecraft.gamepedia.com/Entity   Pretty sure the bug is invalid tipping, not the type being missing  

            Assignee:
            Unassigned
            Reporter:
            Mick Monkey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: