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

Right clicking a command block minecart opens GUI and uses held item

XMLWordPrintable

    • Confirmed

      The bug

      When you right click a command block minecart while holding an item in your hand, it opens the command block GUI and uses the item.

      How to reproduce

      1. Summon a command block minecart
        /summon commandblock_minecart
        
      2. Put an item with right click action in your hand, for example a fishing rod
      3. Right click the command block minecart
        → You will see that the GUI opened and the item was used

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.entity.item.EntityMinecartCommandBlock.processInitialInteract(EntityPlayer, EnumHand) always returns false. Instead it should return the value the method net.minecraft.tileentity.CommandBlockBaseLogic.tryOpenEditCommandBlock(EntityPlayer) returned.

            Unassigned Unassigned
            marcono1234 [Mod] Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: