mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Structures...
This commit is contained in:
parent
82b6eb382d
commit
8a26a4d858
2 changed files with 18 additions and 13 deletions
|
|
@ -68,9 +68,9 @@ class CustomPacketHandler{
|
|||
break;
|
||||
case 0x85:
|
||||
if($this->c === false){
|
||||
$this->data["message"] = $this->get(ord($this->get(1)));
|
||||
$this->data["message"] = $this->get(Utils::readShort($this->get(2), false));
|
||||
}else{
|
||||
$this->raw .= chr(strlen($this->data["message"])).$this->data["message"];
|
||||
$this->raw .= Utils::writeShort(strlen($this->data["message"])).$this->data["message"];
|
||||
}
|
||||
break;
|
||||
case 0x86:
|
||||
|
|
@ -99,6 +99,13 @@ class CustomPacketHandler{
|
|||
$this->raw .= Utils::writeFloat($this->data["z"]);
|
||||
}
|
||||
break;
|
||||
case 0xb1:
|
||||
if($this->c === false){
|
||||
$this->data["message"] = $this->get(Utils::readShort($this->get(2), false));
|
||||
}else{
|
||||
$this->raw .= Utils::writeShort(strlen($this->data["message"])).$this->data["message"];
|
||||
}
|
||||
break;
|
||||
case 0x09:
|
||||
if($this->c === false){
|
||||
$this->data["clientID"] = $this->get(8);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue