Update Level.php

This commit is contained in:
williamtdr 2014-07-21 20:04:58 -05:00
parent 14d86339fc
commit 4c83e9bb56

View File

@ -25,6 +25,7 @@
namespace pocketmine\level;
use pocketmine\block\Air;
use pocketmine\block\Fire;
use pocketmine\block\Block;
use pocketmine\entity\DroppedItem;
use pocketmine\entity\Entity;
@ -812,8 +813,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() === Item::FIRE) {
$level->setBlock($above, new Item::AIR, true, false, true);
if($above->getID() === new Fire()) {
$level->setBlock($above, new Air(), true, false, true);
}
}
}