mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
backport d23eeff8324e51ea1a902271603c50551e074c1b: FallingBlock: remove useless check
This commit is contained in:
parent
dbb669b156
commit
2f61d42518
@ -110,7 +110,7 @@ class FallingBlock extends Entity{
|
|||||||
$this->flagForDespawn();
|
$this->flagForDespawn();
|
||||||
|
|
||||||
$block = $this->level->getBlock($pos);
|
$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
|
//FIXME: anvils are supposed to destroy torches
|
||||||
$this->getLevel()->dropItem($this, ItemFactory::get($this->getBlock(), $this->getDamage()));
|
$this->getLevel()->dropItem($this, ItemFactory::get($this->getBlock(), $this->getDamage()));
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user