From eab3f29bc0dd9b7c7a158268c1d898298733c443 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 2 Jul 2012 19:15:38 +0000 Subject: Only apple leaves can drop apples git-svn-id: http://mc-server.googlecode.com/svn/trunk@643 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cBlockToPickup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source') 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; } -- cgit v1.2.3