简介
此 Mod 提高了数据包大小上限,进而修复了因传输网络数据包异常而被踢出的一系列问题。可以将本模组添加至整合包中,以提高模组数量。
可以在配置文件中修改各项参数上限。
可在整合包中随意添加此模组。
修复内容
读取过大的 NBT 标签时被踢出,并报错“Tried to read NBT tag that was too big; tried to allocate: Xbytes where max allowed: 2097152”;
压缩后的数据包长度过大被踢出,并报错“Badly compressed packet - size of <长度> is larger than protocol maximum of 2097152”;
原始数据包过大被踢出,并报错“Attempted to send packet over maximum protocol size: 8388608 / Packet too big(is <长度>, should be less than 8388608)”;
读取区块时分配过多内存被踢出;
数据包负载(Payload)过长(字节数组超过 1048575 字节或字符串超过 32767 字节)被踢出,并报错“Payload may not be larger than 1048576/32767 bytes”;
数据包长度超出限制被踢出,并在编码端报错“Packet too large: size <长度> is over 8”,在解码端报错“length wider than 21-bit”;
无法压缩被踢出,并报错“Unable to fit <长度> into 3”;
连接已超时(大部分情况),并报错“Connection timeout”;
可变长度格式(VarLong/VarInt)过长被踢出,并报错“VarLong too big/VarInt too big”。
其他报错解决方法(此部分已过时)
如果加入此 Mod 后仍然出现以下错误,可尝试在客户端和服务端同时删除 氪(Krypton)和 Pluto:
Unable to fit X into 3;
VarInt too long。
报错图片