mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fix wrong comment in FallingSand
This is actually a bug in MCPE
This commit is contained in:
parent
5c8297f4a1
commit
92281da514
@ -122,7 +122,7 @@ class FallingSand extends Entity{
|
||||
$this->kill();
|
||||
$block = $this->level->getBlock($pos);
|
||||
if($block->getId() > 0 and $block->isTransparent() and !$block->canBeReplaced()){
|
||||
//FIXME: falling blocks are supposed to be destroyed by glass blocks, and anvils are supposed to destroy torches
|
||||
//FIXME: anvils are supposed to destroy torches
|
||||
$this->getLevel()->dropItem($this, ItemItem::get($this->getBlock(), $this->getDamage(), 1));
|
||||
}else{
|
||||
$this->server->getPluginManager()->callEvent($ev = new EntityBlockChangeEvent($this, $block, Block::get($this->getBlock(), $this->getDamage())));
|
||||
|
Loading…
x
Reference in New Issue
Block a user