mojira.dev
MC-273617

Arrows that are "deflected" suddenly allow being picked up

Expected Behavior

If I set the pickup status to DISALLOWED, it should stay that way despite hitting something which deflects the projectile. This was the behavior in <=1.20.4

Observed Behavior

If the summoned arrow, hits a player and deflects off, once it hits the ground, it's pickup status has been changed to ALLOWED

Steps to Reproduce

  1. Use the command and move out of the way of the arrow

    /summon arrow ~ ~10 ~ {pickup:0b,Owner:[I; -2072785729, 1902920055, -1858696354, -1725573379]}
  1. A player in survival cannot pick it up

  2. Run the command again (in creative mode) and let it hit you and then hit the ground

  3. A player in survival can pick it up

Other Information

This is caused by the the logic which resets the owner of projectiles upon deflection. AbstractArrow overrides setOwner to change the pickup status, and Projectile#deflect calls setOwner.

Linked issues

Comments 3

Would MC-270834 describe your issue?

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Yes, that looks like my issue. Must've missed that when searching for an issue.

No worries! Thanks for reporting the bug still 🙂

Machine Maker

(Unassigned)

Unconfirmed

(Unassigned)

1.21

Retrieved