Skip to content

Conversation

senseiwells
Copy link

This PR fixes the issue outlined in #101.

The issue is caused by com.mojang.serialization.codecs.RecordCodecBuilder$Instance, specifically the MapEncoders provided by the overiden methods lift1, ap2, ap3, ap4, the order of operations is incorrect which results in the fields of record codecs being incorrectly ordered.

This is only true for the encoders, the decoding is done in the correct order.

Copy link

@Technici4n Technici4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, this looks correct! In fact the toString implementation agrees with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants