mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed 0x60 packets being received
This commit is contained in:
parent
69b78a9dd6
commit
10d34a7ce6
2 changed files with 5 additions and 5 deletions
|
|
@ -224,17 +224,17 @@ class Packet{
|
|||
if($reliability === 2
|
||||
or $reliability === 3
|
||||
or $reliability === 4){
|
||||
$messageNumber = Utils::readTriad(strrev(substr($raw, $offset, 3)));
|
||||
$messageIndex = Utils::readTriad(strrev(substr($raw, $offset, 3)));
|
||||
$offset += 3;
|
||||
}else{
|
||||
$messageNumber = 0;
|
||||
$messageIndex = 0;
|
||||
}
|
||||
|
||||
if($reliability === 1
|
||||
or $reliability === 3
|
||||
or $reliability === 4){
|
||||
$orderIndex = Utils::readInt(substr($raw, $offset, 4));
|
||||
$offset += 4;
|
||||
$orderIndex = Utils::readTriad(strrev(substr($raw, $offset, 3)));
|
||||
$offset += 3;
|
||||
$orderChannel = ord($raw{$offset}); //5 bits, 32 values
|
||||
++$offset;
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue