Fix DisconnectionScreen, add getBool() and putBool() methods, update some packets

This commit is contained in:
Dylan K. Taylor
2016-10-12 14:14:30 +01:00
parent ec328a8160
commit df88e9272e
13 changed files with 28 additions and 15 deletions

View File

@ -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));
}