New Chunk objects / structure, Anvil region loader [WiP]

This commit is contained in:
Shoghi Cervantes
2014-04-10 05:05:36 +02:00
parent abccfeac37
commit aa1de79337
19 changed files with 594 additions and 26 deletions

View File

@ -73,7 +73,9 @@ class NBT{
}elseif($len === true){
return substr($this->buffer, $this->offset);
}
if($len > 1024){
return substr($this->buffer, ($this->offset += $len) - $len, $len);
}
$buffer = "";
for(; $len > 0; --$len, ++$this->offset){
$buffer .= @$this->buffer{$this->offset};