mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Revert "Corrected parameters for setBlock()"
This reverts commit 2f3a011ed3
.
This commit is contained in:
@ -813,7 +813,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$above = $level->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
|
||||
if($above instanceof Block) {
|
||||
if($above->getID() === Item::Fire) {
|
||||
$level->setBlock($above, new Air(), true, false);
|
||||
$level->setBlock($above, new Air(), true, false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -886,7 +886,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$hand = $item->getBlock();
|
||||
$hand->position($block);
|
||||
}elseif($block->getID() === Item::FIRE){
|
||||
$this->setBlock($block, new Air(), true, false);
|
||||
$this->setBlock($block, new Air(), true, false, true);
|
||||
|
||||
return false;
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user