Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-209286

A different enchanted book trade is selected when clicking on an enchanted book offer despite not having enough emeralds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 1.16.4, 20w51a, 21w03a, 1.16.5 Release Candidate 1, 1.16.5, 21w07a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Trading

      Description

      When I try to trade with a librarian and select the enchantment book, it only offers a bookshelf, it will not trade the book no matter what I do.

      This issue is not limited to the Librarian, but it's more common with them.

      To reproduce

      (The steps below was provided by Alex in this comment.)

      • Find a villager who offers multiple trades:
        • The first trade
          (E.g: 36 Emeralds + 1 Book => 1 Enchanted Book)
        • One or more other trades with the same first item, but at a lower cost
          (E.g.: 22 Emeralds + 1 Book => 1 Another Enchanted Book; 9 Emeralds => 1 Bookshelf)
      • Don't have enough items in your inventory to successfully buy the 1. trade offer
      • Select the first trade (it only occurs with the first trade)

      Actual Behavior

      It will select the first trade for which you have enough items (E.g.: The 9 Emeralds => 1 Bookshelf if you don't have a book)

      Expected Behavior

      It should not select any trade (The right side of the trade should stay empty)

      Video

      Minecraft 1.16.5 - Singleplayer 2021-01-29 20-06-40.mp4

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              overheatedender Rowan Vollmer
              Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: