summaryrefslogtreecommitdiffstats
path: root/source/cBlockToPickup.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-25 00:34:30 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-25 00:34:30 +0100
commit2892a844d43d4c0e8209ad1efc0b135a957a4b8d (patch)
tree15d657d40fca2a3bed52514c0f7fc79f4e8141aa /source/cBlockToPickup.cpp
parentVery alpha water physic for pickups (The swim now) (diff)
downloadcuberite-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 '')
-rw-r--r--source/cBlockToPickup.cpp5
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: