mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 22:14:42 +00:00
ignore NBT size limits for parsing packet data
This commit is contained in:
1 parent
d3d8bcfab5
commit
e894d6760d
1 file changed
+1
-2
@@ -22,8 +22,7 @@ public class NetworkUtil {
|
||||
} else {
|
||||
byte[] buffer = new byte[size];
|
||||
dataIn.readBytes(buffer);
|
||||
// TODO I have no idea what I'm doing (byte = 8 bits = buffer.length * 8 ???)
|
||||
return CompressedStreamTools.func_152457_a(buffer, new NBTSizeTracker(buffer.length * 8));
|
||||
return CompressedStreamTools.func_152457_a(buffer, NBTSizeTracker.field_152451_a);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
FMLCommonHandler.instance().raiseException(e, "Custom Packet", true);
|
||||
|
||||
Reference in new issue
Block a user