FallingBlock: remove useless check

This commit is contained in:
Dylan K. Taylor 2019-07-02 19:54:56 +01:00
parent 206b397ee1
commit d23eeff832

View File

@ -109,7 +109,7 @@ class FallingBlock extends Entity{
$this->flagForDespawn();
$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
$this->getWorld()->dropItem($this, $this->block->asItem());
}else{