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

Anvil outputs only 1 item when renaming

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16a, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18a
    • Confirmed
    • Survival

      The bug

      When renaming more than 1 item in an anvil in survival, the output will always be 1.

      Code analysis

      In 1.11.2, net.minecraft.inventory.ContainerRepair.updateRepairOutput() sets the output to 1 if the item is not a name tag.

                  ItemStack itemstack1 = itemstack.copy();
      
                  if (itemstack1.getCount() > 1 && !this.player.capabilities.isCreativeMode && !(itemstack1.getItem() instanceof ItemNameTag))
                  {
                      itemstack1.setCount(1);
                  }
      

            Excited Maria Lemón
            Neko [Mod] Neko
            Votes:
            27 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: