From 092edc9d43bb3061d0d743ab6e48f1d1fe18eb23 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 16 Aug 2019 17:41:50 +0100 Subject: [PATCH] avoid breaking concrete powder --- src/pocketmine/entity/object/FallingBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/object/FallingBlock.php b/src/pocketmine/entity/object/FallingBlock.php index 7c47612e2..87e408d1f 100644 --- a/src/pocketmine/entity/object/FallingBlock.php +++ b/src/pocketmine/entity/object/FallingBlock.php @@ -112,7 +112,7 @@ class FallingBlock extends Entity{ $this->flagForDespawn(); $block = $this->level->getBlock($pos); - if(($block->isTransparent() and !$block->canBeReplaced()) or abs($this->y - $this->getFloorY()) > 0.001){ + if(($block->isTransparent() and !$block->canBeReplaced()) or ($this->onGround and abs($this->y - $this->getFloorY()) > 0.001)){ //FIXME: anvils are supposed to destroy torches $this->getLevel()->dropItem($this, ItemFactory::get($this->getBlock(), $this->getDamage())); }else{