mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Cleaned up LoginPacket handling, don't nuke the buffer
This commit is contained in:
@ -62,6 +62,14 @@ abstract class DataPacket extends BinaryStream{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the packet may legally have unread bytes left in the buffer.
|
||||
* @return bool
|
||||
*/
|
||||
public function mayHaveUnreadBytes() : bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function decode(){
|
||||
$this->offset = 0;
|
||||
$this->decodeHeader();
|
||||
|
Reference in New Issue
Block a user