From e67a7a510e5063f605b116ac66867e6048877e16 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 29 May 2013 11:57:58 +0200 Subject: [PATCH] Gravel is able to drop Flint --- src/material/block/solid/Gravel.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/material/block/solid/Gravel.php b/src/material/block/solid/Gravel.php index 18727fc7dd..fa213b420e 100644 --- a/src/material/block/solid/Gravel.php +++ b/src/material/block/solid/Gravel.php @@ -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), + ); + } + } \ No newline at end of file