mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
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:
parent
f315aca4c3
commit
f77a829a52
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user