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

Shift-clicking stacked items with data tag into enchantment table removes data tag from moved item

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Snapshot 13w21b, Snapshot 13w22a, Snapshot 13w23a, Minecraft 1.6, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 13w36a, Minecraft 13w36b, Minecraft 1.7.4, Minecraft 14w03b, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.6-pre1, Minecraft 1.7.6-pre2, Minecraft 1.7.10, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8.8, Minecraft 15w38a, Minecraft 1.10.2, Minecraft 16w32b, Minecraft 16w43a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w15a, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w11a, Minecraft 18w20c, Minecraft 1.13-pre1, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, Minecraft 1.13.2
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      Notable examples

      • Renamed books
      • Shift-clicking a stack of potion arrows into the enchantment table (so it moves a single item) deletes the moved arrow's data/effect
      • Shift-clicking a stack of spawn eggs into the enchantment table (so it moves a single item) creates a "Spawn" spawn egg without any data
      • Firework rockets
      • banners
      • written books

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.inventory.ContainerEnchantment.transferStackInSlot(EntityPlayer, int) only copies the complete item stack data if it has a count of 1, otherwise it creates a new item stack with count 1 and the same meta data but not the NBT data.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                silentjelly SilentJelly
              • Votes:
                22 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: