Merge branch '3.6' into 3.7

This commit is contained in:
Dylan K. Taylor
2019-03-29 19:55:36 +00:00
3 changed files with 9 additions and 8 deletions

View File

@ -90,7 +90,7 @@ class NetworkBinaryStream extends BinaryStream{
if($c !== 1){
throw new \UnexpectedValueException("Unexpected NBT count $c");
}
$nbt = (new NetworkLittleEndianNBTStream())->read($this->buffer, false, $this->offset);
$nbt = (new NetworkLittleEndianNBTStream())->read($this->buffer, false, $this->offset, 512);
}elseif($nbtLen !== 0){
throw new \UnexpectedValueException("Unexpected fake NBT length $nbtLen");
}