mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Remove Erroneous documentation (#5346)
This commit is contained in:
@@ -117,7 +117,6 @@ class FallingBlock extends Entity{
|
|||||||
|
|
||||||
$block = $world->getBlock($pos);
|
$block = $world->getBlock($pos);
|
||||||
if(!$block->canBeReplaced() || !$world->isInWorld($pos->getFloorX(), $pos->getFloorY(), $pos->getFloorZ()) || ($this->onGround && abs($this->location->y - $this->location->getFloorY()) > 0.001)){
|
if(!$block->canBeReplaced() || !$world->isInWorld($pos->getFloorX(), $pos->getFloorY(), $pos->getFloorZ()) || ($this->onGround && abs($this->location->y - $this->location->getFloorY()) > 0.001)){
|
||||||
//FIXME: anvils are supposed to destroy torches
|
|
||||||
$world->dropItem($this->location, $this->block->asItem());
|
$world->dropItem($this->location, $this->block->asItem());
|
||||||
}else{
|
}else{
|
||||||
$ev = new EntityBlockChangeEvent($this, $block, $blockTarget ?? $this->block);
|
$ev = new EntityBlockChangeEvent($this, $block, $blockTarget ?? $this->block);
|
||||||
|
Reference in New Issue
Block a user