mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed DEFLATEPacket return
This commit is contained in:
parent
8d2862a744
commit
1a822460d8
1 changed files with 3 additions and 3 deletions
|
|
@ -120,7 +120,7 @@ class MinecraftInterface{
|
||||||
if($pid === 0x99){
|
if($pid === 0x99){
|
||||||
$CID = PocketMinecraftServer::clientID($source, $port);
|
$CID = PocketMinecraftServer::clientID($source, $port);
|
||||||
if(!isset($this->chunked[$CID]) and $packet->data[0] !== 0){ //Drop packet
|
if(!isset($this->chunked[$CID]) and $packet->data[0] !== 0){ //Drop packet
|
||||||
return $this->popPacket();
|
return false;
|
||||||
}
|
}
|
||||||
switch($packet->data[0]){
|
switch($packet->data[0]){
|
||||||
case 0:
|
case 0:
|
||||||
|
|
@ -286,8 +286,8 @@ class MinecraftInterface{
|
||||||
if(!isset($this->toChunk[$CID])){
|
if(!isset($this->toChunk[$CID])){
|
||||||
$this->toChunk[$CID] = array();
|
$this->toChunk[$CID] = array();
|
||||||
}
|
}
|
||||||
$this->toChunk[$CID][] = $dest;
|
$this->toChunk[$CID][] = $data;
|
||||||
$write = strlen($packet->raw);
|
$write = strlen($data);
|
||||||
}else{
|
}else{
|
||||||
$write = $this->socket->write($data, $dest, $port);
|
$write = $this->socket->write($data, $dest, $port);
|
||||||
$this->writeDump($pid, $data, false, "client", $dest, $port);
|
$this->writeDump($pid, $data, false, "client", $dest, $port);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue