mojira.dev
MC-227268

Maps don't work properly in old terrain when caves and cliffs data pack is enabled

Maps don't work correctly anymore after enabling the Caves & Cliffs preview data pack, in chunks that were generated without the data pack.

To reproduce

  1. Create a singleplayer world in latest release 1.16.5 in creative mode.

  2. Give yourself two empty maps and use them.

  3. Lock one of the maps using a cartography table and a glass pane

  4. Save the world

  5. Add the Caves and Cliffs preview data pack to the world

  6. Open the world in the latest 1.17 snapshot
    → ❌ The unlocked map will look stone-like

  7. Create a new map in newly generated chunks
    → ✔ The map looks correct

Screenshots

[media][media]

Notes

  • The altered map seems to fill data from lower chunks of the overworld.

  • It is possible to see lava flowing at such lower levels.

  • Reason of this bug could be how map drawing code handles fields logical_height, height, min_y, has_ceiling inside dimension_type/overworld.

Linked issues

Attachments

Comments 3

I'm not able to reproduce with the steps provided. Did you forget a step?

Edit: Ah, right, forgot to add the data pack. Can confirm.

More info

  • Both attached screenshot have been taken from 1.17-pre4

  • The first screenshot is the map locked in 1.16.5. It is not a new map generated in 1.17-pre4

  • A map generated in snapshot 1.17 can render partially fine and stone-like depending whether the rendered chunks have been generated with or without datapack.

alef

(Unassigned)

Confirmed

Custom Worlds, Maps

1.17 Pre-release 4

Retrieved