mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Merge branch 'test' of https://github.com/GameHerobrine/NostalgiaCore into test
This commit is contained in:
commit
ab7a2888d1
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