Merge branch 'release/3.4'

This commit is contained in:
Dylan K. Taylor 2018-12-03 18:33:44 +00:00
commit c3623478c1

View File

@ -2120,6 +2120,9 @@ class Level implements ChunkManager, Metadatable{
}
public function setBlockIdAndDataAt(int $x, int $y, int $z, int $id, int $data) : void{
if(!$this->isInWorld($x, $y, $z)){ //TODO: bad hack but fixing this requires BC breaks to do properly :(
return;
}
unset($this->blockCache[$chunkHash = Level::chunkHash($x >> 4, $z >> 4)][$blockHash = Level::blockHash($x, $y, $z)]);
$this->getChunk($x >> 4, $z >> 4, true)->setBlock($x & 0x0f, $y, $z & 0x0f, $id, $data);