summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockGravel.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-12 20:43:05 +0200
committerMattes D <github@xoft.cz>2014-09-12 20:43:05 +0200
commitdb13405da236b5ba42d36135bf905a30341a425c (patch)
tree42e2cad05899d63f2471578b20313583ca570a70 /src/Blocks/BlockGravel.h
parentFixed iron ore drop. (diff)
parentOnly drop flint or gravel, not both. (diff)
downloadcuberite-db13405da236b5ba42d36135bf905a30341a425c.tar
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.gz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.bz2
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.lz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.xz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.zst
cuberite-db13405da236b5ba42d36135bf905a30341a425c.zip
Diffstat (limited to 'src/Blocks/BlockGravel.h')
-rw-r--r--src/Blocks/BlockGravel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Blocks/BlockGravel.h b/src/Blocks/BlockGravel.h
index 3a9fbd170..d076306fb 100644
--- a/src/Blocks/BlockGravel.h
+++ b/src/Blocks/BlockGravel.h
@@ -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);
+ }
}
} ;