diff options
| author | Loki Rautio <lokirautio@gmail.com> | 2026-03-09 04:46:56 -0500 |
|---|---|---|
| committer | Loki Rautio <lokirautio@gmail.com> | 2026-03-09 04:46:56 -0500 |
| commit | a358a3caaee2a4781f910cfb440bd822ae73a7e5 (patch) | |
| tree | 638ff44db51c8e27826e56bacb5af764f98ef2d0 /Minecraft.World/BlockRegionUpdatePacket.cpp | |
| parent | d557ca2dfba5ffcca99ceb41b07d149f871964b5 (diff) | |
Revert accidentally pushed "LCEMP RCE fixes"
This reverts commit d557ca2dfba5ffcca99ceb41b07d149f871964b5.
Diffstat (limited to 'Minecraft.World/BlockRegionUpdatePacket.cpp')
| -rw-r--r-- | Minecraft.World/BlockRegionUpdatePacket.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Minecraft.World/BlockRegionUpdatePacket.cpp b/Minecraft.World/BlockRegionUpdatePacket.cpp index b91cf4f8..730ce3ed 100644 --- a/Minecraft.World/BlockRegionUpdatePacket.cpp +++ b/Minecraft.World/BlockRegionUpdatePacket.cpp @@ -105,12 +105,6 @@ void BlockRegionUpdatePacket::read(DataInputStream *dis) //throws IOException levelIdx = ( size >> 30 ) & 3; size &= 0x3fffffff; - const int MAX_COMPRESSED_CHUNK_SIZE = 5 * 1024 * 1024; - if (size < 0 || size > MAX_COMPRESSED_CHUNK_SIZE) - { - size = 0; - } - if(size == 0) { buffer = byteArray(); |
