Fixed previous error.

This commit is contained in:
williamtdr 2014-07-21 18:27:50 -05:00
parent ccf34a9db8
commit 14d86339fc

View File

@ -812,8 +812,8 @@ class Level implements ChunkManager, Metadatable{
if($level instanceof Level) {
$above = $level->getBlock(new Vector3($target->x, $target->y + 1, $target->z));
if($above instanceof Block) {
if($above->getID() === \pocketmine\block::FIRE) {
$level->setBlock($above, new \pocketmine\block::AIR(), true, false, true);
if($above->getID() === Item::FIRE) {
$level->setBlock($above, new Item::AIR, true, false, true);
}
}
}