Fixed preprocessor issues with signed bytes and floats, close #967

This commit is contained in:
Dylan K. Taylor
2017-06-02 12:50:48 +01:00
parent 3ac51e1095
commit e4e4ef5f2a
6 changed files with 56 additions and 47 deletions

View File

@ -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){

View File

@ -32,7 +32,7 @@ class ByteTag extends NamedTag{
}
public function read(NBT $nbt, bool $network = false){
$this->value = $nbt->getByte(true);
$this->value = $nbt->getSignedByte();
}
public function write(NBT $nbt, bool $network = false){