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

Clicking with an item that is out of stock in the villager trading menu with sufficient payment will allow purchase of the item regardless

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.4 Pre-release 2
    • 23w07a
    • None
    • Confirmed
    • Trading
    • Very Important
    • Platform

      Steps to reproduce:
      1. Buy out a villager's stock of any item. (until the red X appears over the arrow in the left sidebar.)

      2. Pick up that item with the mouse and drag it over to the 3rd slot in the trading menu. 

      3. Ensure that you still have enough to purchase the item if it were in stock.

      4. Hovering over the 3rd, now empty, slot, left click as if you were picking up more of that item on the crafting menu.

      The trade should still give you the item despite the fact that it's out of stock.

      To my knowledge, this only works on stackable items.

      UPDATE: I apologize for the lack of thorough testing before submitting. Here's a video of the bug. 

            gegy1000 [Mojang] Gegy
            02FD Tyler Auble
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: