mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
TAG_Byte should always be signed (#962)
This commit is contained in:
@ -267,8 +267,8 @@ class NBT{
|
||||
$tag->write($this, $network);
|
||||
}
|
||||
|
||||
public function getByte(){
|
||||
return Binary::readByte($this->get(1));
|
||||
public function getByte(bool $signed = false){
|
||||
return Binary::readByte($this->get(1), $signed);
|
||||
}
|
||||
|
||||
public function putByte($v){
|
||||
|
Reference in New Issue
Block a user