Mojira Archive
MC-32701

Command block minecarts lose their name after re-log

The bug

Minecarts with command block don't output their default or customized name after re-log.

Reproduction steps

  1. Rename a command block minecart item
    /give @s command_block_minecart{display:{Name:"\"test\""}}
    
  2. Place it on a powered activator rail
  3. Enter a command, e.g.
    /say message
    

    It prints "[test] message" in chat

  4. Reopen the world
    It prints "[@] message" in chat

Code analysis

Code analysis by Marcono1234 can be found in this comment.