diff options
Diffstat (limited to 'src/Blocks/BlockGravel.h')
-rw-r--r-- | src/Blocks/BlockGravel.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Blocks/BlockGravel.h b/src/Blocks/BlockGravel.h index e1c9ff390..d076306fb 100644 --- a/src/Blocks/BlockGravel.h +++ b/src/Blocks/BlockGravel.h @@ -16,9 +16,17 @@ public: { } - virtual const char * GetStepSound(void) override + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override { - return "step.gravel"; + cFastRandom Random; + if (Random.NextInt(30) == 0) + { + a_Pickups.Add(E_ITEM_FLINT, 1, 0); + } + else + { + a_Pickups.Add(E_BLOCK_GRAVEL, 1, 0); + } } } ; |