UtilitiX

UtilitiX

2M Downloads

Random "Illegal Packet received" disconnect

shBLOCK opened this issue ยท 0 comments

commented

Minecraft version

1.18.2

LibX version

3.2.18

UtilitiX version

0.4.6

Forge version

40.1.68

The latest.log file

SEE DESCRIPTION

Issue description

My friend asked me to help solve an issue of player randomly get disconnected from his LAN world and get a message "Illegal packet received, aborting connection".
After finding out that the message was in NetworkHooks.validatePacketDirection(), I did a mixin there and found out that the expectedDirection seems to be wrong (PLAY_TO_SERVER but it's received on client). But at the point of the mixin the packet hasn't been decoded yet so idk what it actually is, but a line of log:
[minecraft/ClientPacketListener]: Unknown custom packet identifier: utilitix:netchannel
gets printed out after each time the mixin is triggered, I don't have much time to figure out what the problem actually is right now, so I thought I'd just report these findings here.

Steps to reproduce

The problem seems to be very random and hard to reproduce...

Other information

No response