diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 00:34:30 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 00:34:30 +0100 |
commit | 2892a844d43d4c0e8209ad1efc0b135a957a4b8d (patch) | |
tree | 15d657d40fca2a3bed52514c0f7fc79f4e8141aa /source/cBlockToPickup.cpp | |
parent | Very alpha water physic for pickups (The swim now) (diff) | |
download | cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.gz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.bz2 cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.lz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.xz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.zst cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.zip |
Diffstat (limited to 'source/cBlockToPickup.cpp')
-rw-r--r-- | source/cBlockToPickup.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/cBlockToPickup.cpp b/source/cBlockToPickup.cpp index c653f5409..6e59e6573 100644 --- a/source/cBlockToPickup.cpp +++ b/source/cBlockToPickup.cpp @@ -24,9 +24,8 @@ ENUM_ITEM_ID cBlockToPickup::ToPickup( unsigned char a_BlockID, ENUM_ITEM_ID a_U if( a_UsedItemID == E_ITEM_SHEARS )
return E_ITEM_LEAVES;
else
- if(rand() % 5 == 0)
- return E_ITEM_SAPLING;
- return E_ITEM_EMPTY;
+ if(rand() % 5 == 0) return E_ITEM_SAPLING;
+ return E_ITEM_EMPTY;
case E_BLOCK_COAL_ORE:
return E_ITEM_COAL;
case E_BLOCK_LAPIS_ORE:
|