1
0

Only drop flint or gravel, not both.

This commit is contained in:
Howaner 2014-09-12 19:38:00 +02:00
parent fcf558173e
commit d5306f265b

View File

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