Workaround BaseChunk::setBlock() recursion issues

This commit is contained in:
Shoghi Cervantes 2014-08-25 17:08:02 +02:00
parent 1795c8c5e3
commit d6a0e284e3
2 changed files with 2 additions and 3 deletions

View File

@ -887,7 +887,7 @@ class Level implements ChunkManager, Metadatable{
$this->dropItem($target, $item);
}
}
$tile->close();
}

View File

@ -152,8 +152,7 @@ abstract class BaseChunk extends BaseFullChunk implements Chunk{
}catch(\Exception $e){
$level = $this->getProvider();
$this->setInternalSection($Y = $y >> 4, $level::createChunkSection($Y));
return $this->setBlock($x, $y, $z, $blockId, $meta);
return $this->sections[$y >> 4]->setBlock($x, $y & 0x0f, $z, $blockId & 0xff, $meta & 0x0f);
}
}