Only drop flint or gravel, not both.

master
Howaner 2014-09-12 19:38:00 +02:00
parent fcf558173e
commit d5306f265b
1 changed files with 4 additions and 2 deletions

View File

@ -18,13 +18,15 @@ public:
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
a_Pickups.Add(E_BLOCK_GRAVEL, 1, 0);
cFastRandom Random;
if (Random.NextInt(30) == 0)
{
a_Pickups.Add(E_ITEM_FLINT, 1, 0);
}
else
{
a_Pickups.Add(E_BLOCK_GRAVEL, 1, 0);
}
}
} ;