mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Update RakNetDataPacket.php
This commit is contained in:
parent
a071f577bf
commit
7d1e1d0767
1 changed files with 2 additions and 5 deletions
|
|
@ -59,11 +59,8 @@ abstract class RakNetDataPacket extends stdClass{
|
|||
}elseif($len === true){
|
||||
return substr($this->buffer, $this->offset);
|
||||
}
|
||||
$buffer = b"";
|
||||
for(; $len > 0; --$len, ++$this->offset){
|
||||
$buffer .= $this->buffer{$this->offset};
|
||||
}
|
||||
return $buffer;
|
||||
$this->offset += $len;
|
||||
return substr($this->buffer, $this->offset - $len, $len);
|
||||
}
|
||||
|
||||
protected function put($str){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue