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

The recipe book doesn't move ingredients that have NBT data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.12.2, 1.15.1 Pre-release 1, 20w12a, 20w13b, 20w15a, 20w17a, 1.16.1, 1.16.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Crafting, UI

      Description

      Since the beginning of version 1.12 and the introduction of the Recipe Book, there is a bug related to this book that prevents ingredients containing NBT data from being automatically transferred to the crafting grid when clicking on a book.
      The following video shows the bug with leather containing a compound tag :
      https://streamable.com/x2t23
      The recipes are normally not sensitive to NBT data, which allows the recipe but prevents adding the ingredients.
      The error is only server side and related to a player inventory method that is only used for the recipe book.
      Related MCP Mappings :

      PlayerInventory.findSlotMatchingUnusedItem(ItemStack p_194014_1_)
      ServerRecipeBookHelper.func_194325_a(Slot p_194325_1_, ItemStack p_194325_2_)
      

      Affected method: net.minecraft.world.entity.player.Inventory.findSlotMatchingUnusedItem(ItemStack) (Mojang name)
      The check Inventory.isSameItem(ItemStack, ItemStack) makes all subsequent checks irrelevant.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Corail31 Corail
              Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: