Skip to content

Use own packet handler instead of Mekanism's#111

Merged
QiuYe-123 merged 2 commits intolostmyself8:1.20.1from
Rurla:1.20.1
Jan 25, 2026
Merged

Use own packet handler instead of Mekanism's#111
QiuYe-123 merged 2 commits intolostmyself8:1.20.1from
Rurla:1.20.1

Conversation

@Rurla
Copy link

@Rurla Rurla commented Jan 24, 2026

What / 目的

If multiple mods use Mixin to add message registrations in the Mekanism Packet Handler,
registrations may be added in a different order on the client and server,
which can lead to disconnections by using invalid decoder. This PR should fixed it.

Implementation Details / 实现细节

This issue was fixed by using the own Packet Handler instead of the Mekanism Packet Handler. Also removed MixinPacketHandler.

Additional Information / 附加信息

For example, a disconnect message occurs on the Reclamation modpack after clicking "Auto-sort" on machines from this mod, when this mod is added alongside Mekanism Extras:
image

I also have dumps of PacketHandler.class from both the client and the server after Mixin transformations.
I can provide them if needed.

@QiuYe-123 QiuYe-123 added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Jan 25, 2026
Copy link
Collaborator

@QiuYe-123 QiuYe-123 left a comment

Choose a reason for hiding this comment

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

Run .\gradlew spotlessApply

@QiuYe-123
Copy link
Collaborator

can you port for 1.21.1?

@Rurla Rurla requested a review from QiuYe-123 January 25, 2026 12:22
@Rurla
Copy link
Author

Rurla commented Jan 25, 2026

can you port for 1.21.1?

I'll try it later

QiuYe-123

This comment was marked as outdated.

Copy link
Collaborator

@QiuYe-123 QiuYe-123 left a comment

Choose a reason for hiding this comment

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

Good

@QiuYe-123 QiuYe-123 merged commit def2f29 into lostmyself8:1.20.1 Jan 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants