mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 02:21:46 +00:00
Removed redundant condition
This commit is contained in:
parent
f2402f2122
commit
8b3fad8a7b
@ -1623,11 +1623,9 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$above = $this->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
$above = $this->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
||||||
if($above !== null){
|
|
||||||
if($above->getId() === Item::FIRE){
|
if($above->getId() === Item::FIRE){
|
||||||
$this->setBlock($above, BlockFactory::get(Block::AIR), true);
|
$this->setBlock($above, BlockFactory::get(Block::AIR), true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if($createParticles){
|
if($createParticles){
|
||||||
$this->addParticle(new DestroyBlockParticle($target->add(0.5, 0.5, 0.5), $target));
|
$this->addParticle(new DestroyBlockParticle($target->add(0.5, 0.5, 0.5), $target));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user