LevelDB: remove redundant check

Assume that entities on a chunk are not closed... none of the other providers check this
This commit is contained in:
Dylan K. Taylor 2018-06-16 18:00:26 +01:00
parent f315aca4c3
commit f77a829a52

View File

@ -457,9 +457,7 @@ class LevelDB extends BaseLevelProvider{
/** @var CompoundTag[] $tiles */
$tiles = [];
foreach($chunk->getTiles() as $tile){
if(!$tile->isClosed()){
$tiles[] = $tile->saveNBT();
}
$tiles[] = $tile->saveNBT();
}
$this->writeTags($tiles, $index . self::TAG_BLOCK_ENTITY);