Only drop flint or gravel, not both.
This commit is contained in:
parent
fcf558173e
commit
d5306f265b
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user