mojira.dev
MC-112992

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

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.

Linked issues

Comments 1

Appears to be fixed as os snapshot 17w43a.

marcono1234

(Unassigned)

Confirmed

command_block_minecart, interact, item

Minecraft 1.11.2

Minecraft 17w43a

Retrieved