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

Shift clicking items in some container slots does not place them in reversed order in inventory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.13.1
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Items are not placed in reversed order (beginning with slot 9 of the hotbar and ending at the top left slot of the inventory) when they are shift clicked in some slots, instead they are placed starting at the top left slot.

      Affected slots

      Last updated for 1.11.2

      • Furnace:
        • Fuel
        • Item to smelt
      • Villager GUI:
        • Wanted items (both slots)
      • Player inventory:
        • Armor slots
        • Offhand
        • Crafting grid slots
      • Crafting table:
        • Crafting grid slots

      How to reproduce

      1. Place a furnace
      2. Put an item into the item to smelt slot
      3. Shift click the item
        → You will notice that the item moved to the top left slot of your inventory

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The affected methods of the containers overriding the method net.minecraft.inventory.Container.transferStackInSlot(EntityPlayer, int) do not call the method net.minecraft.inventory.Container.mergeItemStack(ItemStack, int, int, boolean) with true as value for the reverseDirection parameter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                4 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: