mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
2159
This commit is contained in:
parent
0f72601891
commit
2573e4f90d
14 changed files with 65 additions and 57 deletions
|
|
@ -87,11 +87,11 @@ class RakNetCodec{
|
|||
++$pointer;
|
||||
if($type === false){
|
||||
$payload .= "\x00";
|
||||
$payload .= strrev(Utils::writeTriad($start));
|
||||
$payload .= strrev(Utils::writeTriad($end));
|
||||
$payload .= Utils::writeLTriad($start);
|
||||
$payload .= Utils::writeLTriad($end);
|
||||
}else{
|
||||
$payload .= Utils::writeBool(true);
|
||||
$payload .= strrev(Utils::writeTriad($start));
|
||||
$payload .= Utils::writeLTriad($start);
|
||||
}
|
||||
++$records;
|
||||
}
|
||||
|
|
@ -126,7 +126,7 @@ class RakNetCodec{
|
|||
}
|
||||
|
||||
protected function putLTriad($v){
|
||||
$this->buffer .= strrev(Utils::writeTriad($v));
|
||||
$this->buffer .= Utils::writeLTriad($v);
|
||||
}
|
||||
|
||||
private function encodeDataPacket(RakNetDataPacket $pk){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue