mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fix DisconnectionScreen, add getBool() and putBool() methods, update some packets
This commit is contained in:
@ -70,6 +70,14 @@ class BinaryStream extends \stdClass{
|
||||
$this->buffer .= $str;
|
||||
}
|
||||
|
||||
public function getBool() : bool{
|
||||
return (bool) $this->getByte();
|
||||
}
|
||||
|
||||
public function putBool($v){
|
||||
$this->putByte((bool) $v);
|
||||
}
|
||||
|
||||
public function getLong(){
|
||||
return Binary::readLong($this->get(8));
|
||||
}
|
||||
|
Reference in New Issue
Block a user