mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Some packets
This commit is contained in:
parent
22965e0acf
commit
123f988017
4 changed files with 35 additions and 40 deletions
|
|
@ -71,8 +71,11 @@ class MinecraftInterface{
|
|||
if($data[3] === false){
|
||||
return false;
|
||||
}
|
||||
$pid = $data[0]{0};
|
||||
$pid = ord($pid);
|
||||
$pid = ord($data[0]);
|
||||
if($pid === 0x84){
|
||||
$data[0] = substr($data[0], 10);
|
||||
$pid = ord($data[0]);
|
||||
}
|
||||
$struct = $this->getStruct($pid);
|
||||
if($struct === false){
|
||||
$p = "[".microtime(true)."] [SERVER->CLIENT]: Error, bad packet id 0x".Utils::strToHex(chr($pid)).PHP_EOL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue