summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/cBlockToPickup.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/cBlockToPickup.cpp b/source/cBlockToPickup.cpp
index 8089320e7..eec750183 100644
--- a/source/cBlockToPickup.cpp
+++ b/source/cBlockToPickup.cpp
@@ -260,7 +260,10 @@ void cBlockToPickup::ToPickup(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, con
else
{
AddRandomDrop(a_Drops, r1, 5, E_ITEM_SAPLING);
- AddRandomDrop(a_Drops, r1, 200, E_ITEM_APPLE);
+ if (a_BlockMeta == E_META_LEAVES_APPLE)
+ {
+ AddRandomDrop(a_Drops, r1, 200, E_ITEM_APPLE);
+ }
}
return;
}