WiIIiam278 / HuskSync

A modern, cross-server player data synchronisation system
https://william278.net/project/husksync
Apache License 2.0
173 stars 134 forks source link

Map Desynchronization After 1.21.1 Update - Locked Maps Lose Pixels #406

Open Aurbey opened 5 days ago

Aurbey commented 5 days ago

Description: After updating my Minecraft servers to version 1.21.1, I've encountered an issue with HuskSync where locked maps do not sync properly between servers. Prior to the update, everything worked flawlessly, but now maps lose pixels after traveling between servers.

Steps to Reproduce:

  1. Create a locked map on one server (in my case, the Arts server).
  2. Teleport to another server (in my setup, it's the Farms server) with HuskSync active.
  3. Open the same locked map after synchronization.

Expected Behavior: The locked map should appear identical across servers without any visual issues.

Actual Behavior: The map loses pixels or shows visual corruption after syncing between servers, as if some pixel data is not being transferred correctly. Attached are screenshots comparing the same map before and after synchronization:

Screenshot 1: Normal map after creation. image

Screenshot 2: The same map after traveling between servers. image

Server Details:

No errors in the logs. Redis and MySQL are configured and working fine

Additional Information: I have tried replicating the issue on a fresh server setup, and the problem persists. This issue did not occur on version 1.20.x, and no other plugin changes have been made. Could this be related to how map data is serialized or synced after the update?

Potential Cause/Idea: The issue seems to be related to how HuskSync handles the new map format or locked map data in 1.21.1. Perhaps some data fields are missing or incorrectly handled during the synchronization process.(Assumption.)

FlizZ27 commented 5 days ago

Up

WiIIiam278 commented 5 days ago

Thanks for the detailed report & for bringing this to my attention.

On inspection of the wiki, it seems an undocumented change to the Map format was made in the 1.20.6 update cycle. This will require an investigation. https://minecraft.wiki/w/Map#History