I created Map17 inceased the zoom to level 3 and then cloned it.
Then I lock one of the maps with a glasspane.
(The map is empty, as I didn't hold it in my hands yet - but that's not the issue it also happens when the map is partially discovered)
Then I start updating the second map until it's fully/partially discovered.
Then I lock the second map, the map now is empty like the first map that I have locked.
Linked issues
Attachments
Comments 2

Can confirm, affects 1.20.51.
How to reproduce:
Upgrade a map to level 3 and clone it.
Lock one of the maps with a glass pane
Update the other one by discovering new terrain.
Lock the second one.
Observed behavior:
When the clone of a locked map is updated, none of its progress will be saved and will be reset if it gets locked.
Expected behavior:
The clone of a map that's been locked should be able to retain any updates made prior to being locked.