mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +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();
|
||||
|
||||
$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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user