mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Use getBool() more
This commit is contained in:
@ -71,11 +71,11 @@ class BinaryStream extends \stdClass{
|
||||
}
|
||||
|
||||
public function getBool() : bool{
|
||||
return (bool) $this->getByte();
|
||||
return $this->get(1) !== "\x00";
|
||||
}
|
||||
|
||||
public function putBool($v){
|
||||
$this->putByte((bool) $v);
|
||||
$this->buffer .= ($v ? "\x01" : "\x00");
|
||||
}
|
||||
|
||||
public function getLong(){
|
||||
|
Reference in New Issue
Block a user