summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-23 09:11:42 +0200
committermadmaxoft <github@xoft.cz>2014-07-23 09:12:06 +0200
commitdfadcf745384f574e751e78bc3e2ddb262fe1fdf (patch)
treeebf1bca5c327c7b9b300a0154ceeb5bc3aefb228 /src
parentFixed MSVC bindings regeneration. (diff)
downloadcuberite-dfadcf745384f574e751e78bc3e2ddb262fe1fdf.tar
cuberite-dfadcf745384f574e751e78bc3e2ddb262fe1fdf.tar.gz
cuberite-dfadcf745384f574e751e78bc3e2ddb262fe1fdf.tar.bz2
cuberite-dfadcf745384f574e751e78bc3e2ddb262fe1fdf.tar.lz
cuberite-dfadcf745384f574e751e78bc3e2ddb262fe1fdf.tar.xz
cuberite-dfadcf745384f574e751e78bc3e2ddb262fe1fdf.tar.zst
cuberite-dfadcf745384f574e751e78bc3e2ddb262fe1fdf.zip
Diffstat (limited to 'src')
-rw-r--r--src/Blocks/BlockLeaves.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockLeaves.h b/src/Blocks/BlockLeaves.h
index 1635eba08..e426c89e0 100644
--- a/src/Blocks/BlockLeaves.h
+++ b/src/Blocks/BlockLeaves.h
@@ -40,14 +40,14 @@ public:
{
cFastRandom rand;
- // Only the first 2 bits contain the display information, the others are for growing
+ // Old leaves - 3 bits contain display; new leaves - 1st bit, shifted left two for saplings to understand
if (rand.NextInt(6) == 0)
{
a_Pickups.push_back(
cItem(
E_BLOCK_SAPLING,
1,
- (m_BlockType == E_BLOCK_LEAVES) ? (a_BlockMeta & 0x03) : (2 << (a_BlockMeta & 0x01)) // Old leaves - 3 bits contain display; new leaves - 1st bit, shifted left two for saplings to understand
+ (m_BlockType == E_BLOCK_LEAVES) ? (a_BlockMeta & 0x03) : (2 << (a_BlockMeta & 0x01))
)
);
}