summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLeaves.h
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-06-08 02:24:31 +0200
committernarroo <narroo@vt.edu>2014-06-08 02:24:31 +0200
commit6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d (patch)
tree6a704a88f6175389d4c07ebca92f975bbd36eb47 /src/Blocks/BlockLeaves.h
parentFixed some E_META_*** Names (diff)
downloadcuberite-6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d.tar
cuberite-6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d.tar.gz
cuberite-6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d.tar.bz2
cuberite-6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d.tar.lz
cuberite-6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d.tar.xz
cuberite-6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d.tar.zst
cuberite-6aa3c5ece86d864e4dac8f2632500bfc0e4dd89d.zip
Diffstat (limited to '')
-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 d21227b07..d9d1bdb7e 100644
--- a/src/Blocks/BlockLeaves.h
+++ b/src/Blocks/BlockLeaves.h
@@ -47,7 +47,7 @@ public:
}
// 1 % chance of dropping an apple, if the leaves' type is Apple Leaves
- if ((a_BlockMeta & 3) == E_META_LEAVES_APPLE)
+ if ((a_BlockMeta & 3) == E_META_NEWLEAVES_APPLE)
{
if (rand.NextInt(101) == 0)
{
@@ -64,7 +64,7 @@ public:
// 0.5% chance of dropping an apple, if the leaves' type is Apple Leaves:
NIBBLETYPE Meta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ);
cFastRandom rand;
- if (((Meta & 3) == E_META_LEAVES_APPLE) && (rand.NextInt(201) == 100))
+ if (((Meta & 3) == E_META_NEWLEAVES_APPLE) && (rand.NextInt(201) == 100))
{
cItems Drops;
Drops.push_back(cItem(E_ITEM_RED_APPLE, 1, 0));