summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 21:15:38 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 21:15:38 +0200
commiteab3f29bc0dd9b7c7a158268c1d898298733c443 (patch)
tree59c6d3b3ef7e6fe838fc1c126ffc660d5aae8d53 /source
parentBLOCKTYPE and NIBBLETYPE are finally exported in Lua API as numbers, not usertypes (diff)
downloadcuberite-eab3f29bc0dd9b7c7a158268c1d898298733c443.tar
cuberite-eab3f29bc0dd9b7c7a158268c1d898298733c443.tar.gz
cuberite-eab3f29bc0dd9b7c7a158268c1d898298733c443.tar.bz2
cuberite-eab3f29bc0dd9b7c7a158268c1d898298733c443.tar.lz
cuberite-eab3f29bc0dd9b7c7a158268c1d898298733c443.tar.xz
cuberite-eab3f29bc0dd9b7c7a158268c1d898298733c443.tar.zst
cuberite-eab3f29bc0dd9b7c7a158268c1d898298733c443.zip
Diffstat (limited to '')
-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;
}