Gravel is able to drop Flint

This commit is contained in:
Shoghi Cervantes 2013-05-29 11:57:58 +02:00
parent 8192b41693
commit e67a7a510e

View File

@ -30,4 +30,15 @@ class GravelBlock extends FallableBlock{
parent::__construct(GRAVEL, 0, "Gravel");
}
public function getDrops(Item $item, Player $player){
if(mt_rand(1,10) === 1){
return array(
array(FLINT, 0, 1),
);
}
return array(
array(GRAVEL, 0, 1),
);
}
}