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

Shooting, summoning or editing an arrow and reloading the world gives potion particles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w40a, 19w35a
    • Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w17a, Minecraft 17w17b, Minecraft 17w18a, Minecraft 17w18b, Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 4, Minecraft 1.12 Pre-Release 5, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 17w31a, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w46a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w07b, Minecraft 18w07c, Minecraft 18w09a, Minecraft 18w11a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w21b, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43c, Minecraft 18w47a, Minecraft 18w47b, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.14.4
    • Confirmed
    • (Unassigned)

      The bug

      I shot a regular arrow on the ground and reloaded my world, the arrow now has particles as if it's a tipped arrow, yet when I pick up the arrow it gives a regular arrow.

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The Color tag is only written if the arrow has a custom color. The problem is that the game calls the method net.minecraft.entity.projectile.EntityTippedArrow.refreshColor() when an arrow without Color tag is loaded. This method sets the color to the water color.
      This could be fixed by always writing the Color tag to make sure tipped water arrows keep their particles as well. Additionally the check if the Color tag exists when reading the NBT data can be removed then.

            grum [Mojang] Grum (Erik Broes)
            JohnStar128 JohnStar128
            Votes:
            57 Vote for this issue
            Watchers:
            27 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: