backport d23eeff8324e51ea1a902271603c50551e074c1b: FallingBlock: remove useless check

This commit is contained in:
Dylan K. Taylor 2019-07-02 19:54:56 +01:00
parent dbb669b156
commit 2f61d42518

View File

@ -110,7 +110,7 @@ class FallingBlock extends Entity{
$this->flagForDespawn();
$block = $this->level->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->getLevel()->dropItem($this, ItemFactory::get($this->getBlock(), $this->getDamage()));
}else{