Chunk: Fixed possible bug with Chunk->setBlockData()

to be honest this would probably never affect anything, but let's be consistent.
This commit is contained in:
Dylan K. Taylor 2017-11-27 19:26:20 +00:00
parent b93691a177
commit 256527c953

View File

@ -249,7 +249,7 @@ class Chunk{
* @param int $data 0-15
*/
public function setBlockData(int $x, int $y, int $z, int $data){
if($this->getSubChunk($y >> 4)->setBlockData($x, $y & 0x0f, $z, $data)){
if($this->getSubChunk($y >> 4, true)->setBlockData($x, $y & 0x0f, $z, $data)){
$this->hasChanged = true;
}
}