mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 19:24:12 +00:00
Block: Rename getItem() to asItem()
this has clearer meaning and is less likely to collide with other things.
This commit is contained in:
@ -110,7 +110,7 @@ class FallingBlock extends Entity{
|
||||
$block = $this->level->getBlock($pos);
|
||||
if($block->getId() > 0 and $block->isTransparent() and !$block->canBeReplaced()){
|
||||
//FIXME: anvils are supposed to destroy torches
|
||||
$this->getLevel()->dropItem($this, $this->block->getItem());
|
||||
$this->getLevel()->dropItem($this, $this->block->asItem());
|
||||
}else{
|
||||
$ev = new EntityBlockChangeEvent($this, $block, $blockTarget ?? $this->block);
|
||||
$ev->call();
|
||||
|
Reference in New Issue
Block a user