mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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,10 +457,8 @@ class LevelDB extends BaseLevelProvider{
|
|||||||
/** @var CompoundTag[] $tiles */
|
/** @var CompoundTag[] $tiles */
|
||||||
$tiles = [];
|
$tiles = [];
|
||||||
foreach($chunk->getTiles() as $tile){
|
foreach($chunk->getTiles() as $tile){
|
||||||
if(!$tile->isClosed()){
|
|
||||||
$tiles[] = $tile->saveNBT();
|
$tiles[] = $tile->saveNBT();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$this->writeTags($tiles, $index . self::TAG_BLOCK_ENTITY);
|
$this->writeTags($tiles, $index . self::TAG_BLOCK_ENTITY);
|
||||||
|
|
||||||
/** @var CompoundTag[] $entities */
|
/** @var CompoundTag[] $entities */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user