mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 11:16:57 +00:00
Fixed preprocessor issues with signed bytes and floats, close #967
This commit is contained in:
@ -267,8 +267,12 @@ class NBT{
|
||||
$tag->write($this, $network);
|
||||
}
|
||||
|
||||
public function getByte(bool $signed = false){
|
||||
return Binary::readByte($this->get(1), $signed);
|
||||
public function getByte(){
|
||||
return Binary::readByte($this->get(1));
|
||||
}
|
||||
|
||||
public function getSignedByte(){
|
||||
return Binary::readSignedByte($this->get(1));
|
||||
}
|
||||
|
||||
public function putByte($v){
|
||||
|
Reference in New Issue
Block a user