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

ItemStack with NBT and the Recipe Book

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.12.2, 1.15.1 Pre-release 1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      n'importe lequel
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      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
                Reporter:
                Corail31 Corail
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK:

                  Potential Duplicates