mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Fixes to DEFLATE
This commit is contained in:
@@ -133,7 +133,7 @@ class MinecraftInterface{
|
|||||||
foreach($this->toChunk as $CID => $packets){
|
foreach($this->toChunk as $CID => $packets){
|
||||||
$d = $this->chunked[$CID];
|
$d = $this->chunked[$CID];
|
||||||
$raw = "";
|
$raw = "";
|
||||||
$MTU = 0;
|
$MTU = 512;
|
||||||
foreach($packets as $packet){
|
foreach($packets as $packet){
|
||||||
$raw .= $packet;
|
$raw .= $packet;
|
||||||
if(($len = strlen($packet)) > $MTU){
|
if(($len = strlen($packet)) > $MTU){
|
||||||
|
Reference in New Issue
Block a user