Internal Exception: "Packet was larger than I expected"
Davido101 opened this issue · 2 comments
When trying to connect to a server (1.18.2, and although I have not been able to verify, I am pretty sure that it is in offline mode and that that is causing the issue), I received a "Packet was larger than I expected" error. I have not been able to find a solution online or on the issues list. If you need any further information, go ahead
I since discovered that the packet simulation_distance was causing the issue. I have enabled scripting and written the following to fix it:
exports.upstreamHandler = function (meta, data, server, client) {
if (meta.name === 'simulation_distance') {
return
}
server.sendPacket(meta, data)
}
exports.downstreamHandler = function (meta, data, server, client) {
client.sendPacket(meta, data)
}
I am now getting a different error 12 packets after the simulation_distance packet was supposed to be sent:
Edit: Turns out it does not consistantly happen 12 packets after the simulation_distance. In fact, it was a server-side issue. That still leaves into question why simulation_distance was causing the connection to close. On another note, I just discovered Github's edit feature...
That was a mistake, I did not intend to close it