mojira.dev
MC-148333

Villager UI destroying trade items when multi-trading

Environment:

  • Minecraft 1.14 Pre-Release 2

  • Vanilla, remote private server

  • Java 1.8.0_51 64 bit local client

Steps to replicate:

  1. Insert trade desire into trade window for multiple trades

  2. Shift+click to trade all or continue manually trading multiple times

  3. Villager no longer wants what you're trading or plays the "willing to breed" animation

  4. Try to pull item back out of offer

  5. Item is destroyed (not dropped or returned to your inventory)

Replication rate: seems pretty high, I haven't been able to completely isolate when it happens, seems more frequent with Master level villagers.

Related issues

Comments

migrated

On further experimentation, the issue might be related to the process that's lowering the desired trades... For example, when I have a trade offer for 3 2 books -> 1 emerald, initial trading lets me trade at 2:1, but when the trade completes, additional books are deducted from my "offer" when I'm pulling them back to return to my inventory. 

Recent example: I had 36 books, trading with a master librarian showing 3 2 books -> 1 emerald.  Put all 36 books in the offer, traded for 1 emerald at a time.  Placed the 6 emeralds in my inventory when the villager stopped wanting that trade, went to pick up the 24 books still showing in my offer, and as soon as I picked them up, the stack size was reduced to 18.

I tested further with a villager that offered 5 4 emeralds for 3 bookshelves (and 1 emerald for a lantern).  Placed exactly 4 emeralds in my offer.  When I went to pick up the bookshelf, the villager traded me a lantern instead and took 1 emerald from me.

Also, when I had exactly 16 emeralds offered to the same villager, shift+clicking initially placed 4 bookshelves in my inventory.  When I closed the villager trade UI, my inventory was changed to 3 bookshelves and 1 emerald.

So, from what I can tell, the trade UI isn't applying the "discounted" cost that it's displaying, but it winds up recalculating it on close of the UI or when you pick up your offer.

violine1101

This was fixed in 1.14.1, see MC-148454.

migrated

(Unassigned)

Unconfirmed

Minecraft 1.14 Pre-Release 2

Retrieved