mojira.dev
MC-157215

Loading 2 crossbows with 1 arrow in the mainhand and offhand can cause the arrow in the hotbar/inventory to become a "ghost arrow"

The bug

If you load one crossbow in the mainhand and press F to switch to the unloaded crossbow, both are not loaded, but the arrow however has disappeared but not completely as updating the hotbar causes the arrow to come back.

How to reproduce

  1. Get 2 crossbows, put 1 in the offhand and the other in the mainhand

  2. Get 1 arrow

  3. Go to creative/survival

  4. Load the crossbow in the mainhand then press F to quickly try to load the other

  5. 2 of your crossbows are not loaded, however the arrow disappears on the hotbar, causing a "ghost arrow"

Linked issues

Attachments

Comments 5

Can confirm in 20w51a. This is quite difficult to reproduce and took me some time.

Can confirm in 21w03a.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w11a.

Fixed in 24w18a. Although, there is still an animation error where the crossbow gets filled then unfilled.

24w18a:

[media]



1.20.6:

[media]

DrownedZombie

(Unassigned)

Confirmed

Items

1.14.4, 19w34a, 19w35a, 19w36a, 19w39a, ..., 21w06a, 21w07a, 1.18.1, 1.18.2, 22w11a

24w18a

Retrieved