This commit is contained in:
williamtdr 2014-07-21 10:51:30 -05:00
parent fa318ce706
commit 16d33b01f4

View File

@ -806,7 +806,17 @@ class Level implements ChunkManager, Metadatable{
}elseif($item instanceof Item and !$target->isBreakable($item)){
return false;
}
$level = $target->getLevel();
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);
}
}
}
$drops = $target->getDrops($item); //Fixes tile entities being deleted before getting drops
$target->onBreak($item);
if($item instanceof Item){