Updated NBT/DataPacket reading

This commit is contained in:
Shoghi Cervantes 2014-10-31 01:02:31 +01:00
parent 82cfe6ea9c
commit 094b600a0c

View File

@ -72,7 +72,7 @@ class NBT{
public $endianness; public $endianness;
private $data; private $data;
protected function get($len){ public function get($len){
if($len < 0){ if($len < 0){
$this->offset = strlen($this->buffer) - 1; $this->offset = strlen($this->buffer) - 1;
return ""; return "";