mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Added 0x03 unknown packet
This commit is contained in:
parent
f9c71f1800
commit
9b09ff4042
2 changed files with 18 additions and 0 deletions
|
|
@ -56,6 +56,15 @@ class CustomPacketHandler{
|
||||||
$this->raw .= Utils::writeLong($this->data["payload"]);
|
$this->raw .= Utils::writeLong($this->data["payload"]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 0x03:
|
||||||
|
if($this->c === false){
|
||||||
|
$this->data["unknown1"] = Utils::readLong($this->get(8));
|
||||||
|
$this->data["unknown2"] = Utils::readLong($this->get(8));
|
||||||
|
}else{
|
||||||
|
$this->raw .= Utils::writeLong($this->data["unknown1"]);
|
||||||
|
$this->raw .= Utils::writeLong($this->data["unknown2"]);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case MC_CLIENT_CONNECT:
|
case MC_CLIENT_CONNECT:
|
||||||
if($this->c === false){
|
if($this->c === false){
|
||||||
$this->data["clientID"] = Utils::readLong($this->get(8));
|
$this->data["clientID"] = Utils::readLong($this->get(8));
|
||||||
|
|
@ -509,6 +518,13 @@ class CustomPacketHandler{
|
||||||
$this->raw .= $this->data["unknown2"];
|
$this->raw .= $this->data["unknown2"];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
if($this->c === false){
|
||||||
|
console("[DEBUG] Received unknown Data Packet ID 0x".dechex($pid), true, true, 2);
|
||||||
|
}else{
|
||||||
|
console("[DEBUG] Sent unknown Data Packet ID 0x".dechex($pid), true, true, 2);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@ the Free Software Foundation, either version 3 of the License, or
|
||||||
//Protocol Version: 5
|
//Protocol Version: 5
|
||||||
|
|
||||||
|
|
||||||
|
define("MC_KEEP_ALIVE", 0x00);
|
||||||
|
|
||||||
define("MC_KEEP_ALIVE", 0x00);
|
define("MC_KEEP_ALIVE", 0x00);
|
||||||
|
|
||||||
define("MC_CLIENT_CONNECT", 0x09);
|
define("MC_CLIENT_CONNECT", 0x09);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue