NBT updates and tile spawns fixed

This commit is contained in:
Dylan K. Taylor
2016-10-04 18:45:03 +01:00
parent 8f9574dec5
commit ff40c0a070
20 changed files with 130 additions and 97 deletions

View File

@ -58,7 +58,9 @@ class BinaryStream extends \stdClass{
$this->offset = strlen($this->buffer) - 1;
return "";
}elseif($len === true){
return substr($this->buffer, $this->offset);
$str = substr($this->buffer, $this->offset);
$this->offset = strlen($this->buffer);
return $str;
}
return $len === 1 ? $this->buffer{$this->offset++} : substr($this->buffer, ($this->offset += $len) - $len, $len);