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