mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed previous error.
This commit is contained in:
parent
ccf34a9db8
commit
14d86339fc
@ -812,8 +812,8 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
if($level instanceof Level) {
|
if($level instanceof Level) {
|
||||||
$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() === \pocketmine\block::FIRE) {
|
if($above->getID() === Item::FIRE) {
|
||||||
$level->setBlock($above, new \pocketmine\block::AIR(), true, false, true);
|
$level->setBlock($above, new Item::AIR, true, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user