summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-08 16:52:17 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-08 16:52:17 +0200
commit308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589 (patch)
tree76d566cee3013b421542e7ccbd8cadc521946a76 /source
parentSugarcane grows and can be grown using bonemeal. (diff)
downloadcuberite-308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589.tar
cuberite-308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589.tar.gz
cuberite-308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589.tar.bz2
cuberite-308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589.tar.lz
cuberite-308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589.tar.xz
cuberite-308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589.tar.zst
cuberite-308f6b846fb4dd8ecb0b2c36ac4ab96f4f23b589.zip
Diffstat (limited to '')
-rw-r--r--source/cBlockToPickup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cBlockToPickup.cpp b/source/cBlockToPickup.cpp
index 14a349bb2..d758ea255 100644
--- a/source/cBlockToPickup.cpp
+++ b/source/cBlockToPickup.cpp
@@ -12,11 +12,11 @@
static void AddRandomDrop(cItems & a_Drops, MTRand & r1, int a_OneInNChance, ENUM_ITEM_ID a_ItemID)
{
- if (r1.randInt(a_OneInNChance - 1) != 0)
+ if ((r1.randInt(16 * a_OneInNChance - 1) / 16) != 0)
{
return;
}
- a_Drops.push_back(cItem(a_ItemID));
+ a_Drops.push_back(cItem(a_ItemID, 1));
}