mojira.dev
MC-303401

Using the pick block key on maps with `map_post_processing` from a cartography table in Creative mode causes the game to crash

Expected Behavior

For most blocks with a crafting ui, pressing the Pick Block button (default Middle-Click) over the output while in creative mode will give the player a full stack of the output item without consuming any inputs.

Observed Behavior

When attempting to do this on a cartography table while either locking the map or increasing the scale of the map, the game will crash. The world can still be opened, but the map and item added to it will no longer exist.

From attached crash log, it appears that using middle click does not remove the non-encoded minecraft:map_post_processing component before copying the item to give it to the player.

Steps to Reproduce

  1. Create a map.

  2. Place the map and a piece of paper or a glass pane in a cartography table.

  3. Hover over the output.

  4. Click the Pick Block button.

Attachments

Comments 0

No comments.

DqwertyC

(Unassigned)

Confirmed

Crash

1.21.10, 25w42a

Retrieved