mojira.dev
MC-196916

Villagers keep holding item if they go out of stock when player is in the trading GUI

Villager held items don't refresh immediately if the trade availability status has changed.

How to reproduce:
for example: wheat to emerald trade
1. Hold wheat in hand
2. Open trading GUI
3. Keep holding wheat in your hand
4. Trade wheat to emerald until out of stock
5. Villager still stuck holding emerald to indicate wheat to emerald trade

They only refresh if you switch to holding another item.

Note that this is not the behaviour seen when they are restocking.

Related issues

Attachments

Comments

migrated
[media][media][media]
Avoma

I can confirm in 20w46a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 1.16.5 and 21w08b.

Avoma

Video attached. Relates to MC-150589.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 1.19.2.

CCheukKa

(Unassigned)

Confirmed

Mob behaviour, Trading

trading, villager

1.16.1, 1.16.3, 20w46a, 21w03a, 1.16.5, ..., 1.19.3, 23w07a, 1.19.4, 23w14a, 1.20.1

Retrieved