Fixed #270 Blocks that need to be broken with a pickaxe now give correct drops & items

This commit is contained in:
Shoghi Cervantes Pueyo
2013-05-20 16:33:09 +02:00
parent 713f16771f
commit 47b54cfd28
30 changed files with 636 additions and 31 deletions

View File

@ -46,8 +46,12 @@ class StairBlock extends TransparentBlock{
}
public function getDrops(Item $item, Player $player){
return array(
array($this->id, 0, 1),
);
if($item->isPickaxe() >= 1){
return array(
array($this->id, 0, 1),
);
}else{
return array();
}
}
}