Mojira Archive
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.

Unresolved

CCheukKa

2020-08-03, 07:31 PM

2023-11-29, 03:07 AM

6

3

Confirmed

Mob behaviour, Trading

trading, villager

1.16.1 - 1.20.11.16.1, 1.16.3, 20w46a, 21w03a, 1.16.5, 21w08b, 21w11a, 1.19.2, 1.19.3, 23w07a, 1.19.4, 23w14a, 1.20.1

-