mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
FallingBlock: remove useless check
This commit is contained in:
parent
206b397ee1
commit
d23eeff832
@ -109,7 +109,7 @@ class FallingBlock extends Entity{
|
|||||||
$this->flagForDespawn();
|
$this->flagForDespawn();
|
||||||
|
|
||||||
$block = $this->world->getBlock($pos);
|
$block = $this->world->getBlock($pos);
|
||||||
if($block->getId() > 0 and $block->isTransparent() and !$block->canBeReplaced()){
|
if($block->isTransparent() and !$block->canBeReplaced()){
|
||||||
//FIXME: anvils are supposed to destroy torches
|
//FIXME: anvils are supposed to destroy torches
|
||||||
$this->getWorld()->dropItem($this, $this->block->asItem());
|
$this->getWorld()->dropItem($this, $this->block->asItem());
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user