[๐]: Failed to decode packet 'clientbound/minecraft:map_item_data'
adaliszk opened this issue ยท 8 comments
BEFORE CONTINUING:
- Always check you are using the latest version of these mods and its dependencies
- Remove known problematic rendering mods such as Optifine, Sodium and others
Version-Loader
1.21.1-NEOFORGE
Moonlight Lib Version
- 1.21-2.18.13-neoforge
- 1.21-2.18.18-neoforge (breaks with a different serializer)
Describe the Issue
With the latest Moonlight & Supplementaries, the Map Atlases mod sends a ByteArray of size 111 that exceeds the allowed 17 through a Velocity proxy, which then fails the connection when an atlas is in the hotbar (assuming that any inventory slot would do that too).
Earlier versions of the mods have worked without issues, so I must assume that any of the related mods have changed stuff around packets or networking that now in combination causes the issue. When the Map Atlas is disabled, maps work just fine otherwise.
/cc MehVahdJukaar/mapatlases-neoforge#220
/cc Gabwasnt/NeoVelocity#21
Log Attachment
See the client logs: https://mclo.gs/WMut3PY
OPTIONAL: To Produce
No response
OPTIONAL: Which mods are affected?
Looks like the related version is https://modrinth.com/mod/moonlight/version/neoforge_1.21-2.17.34
Following up here with the information provided at MehVahdJukaar/mapatlases-neoforge#220 (comment)
The issue is confirmed with the
Where using static initializers, the order of the registered packets is not guaranteed between the server and the client, especially when they have different mods such as terrain generation mods on the server side, which would be one of the most common setups.
To solve the issue, an alternative approach should be used to avoid relying on the static registration order. Especially that it is one of the code smells in Java coding as they are widely unreliable.
not much i can do there. im registering that data serializer to the neoforge added registry on both server and client. the 2 should always match
Sorry for the delay. I just tested it on the server where the previous version was throwing a packet error, and now it appears to be fixed.
client side: https://mclo.gs/keIFLco
server does not seem to say anything wrong
the custom build that Moulberry made works flawlessly

