Fire can be broken

This commit is contained in:
Shoghi Cervantes 2013-06-09 14:59:55 +02:00
parent 2976db25c3
commit 1cc19ae1e8

View File

@ -29,10 +29,13 @@ class FireBlock extends FlowableBlock{
public function __construct($meta = 0){ public function __construct($meta = 0){
parent::__construct(FIRE, $meta, "Fire"); parent::__construct(FIRE, $meta, "Fire");
$this->isReplaceable = true; $this->isReplaceable = true;
$this->breakable = false;
$this->isFullBlock = true; $this->isFullBlock = true;
} }
public function getDrops(Item $item, Player $player){
return array();
}
public function onUpdate($type){ public function onUpdate($type){
if($type === BLOCK_UPDATE_NORMAL){ if($type === BLOCK_UPDATE_NORMAL){
for($s = 0; $s <= 5; ++$s){ for($s = 0; $s <= 5; ++$s){