summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-27 23:03:04 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-27 23:03:04 +0100
commit994e1d73355df62fb458936433f7478c9a0ef1ba (patch)
tree8a73f7de8f442ef26e5d43348f60efe37cfb6cbf /src/ChunkMap.cpp
parentMerged master into redstonefixes (diff)
downloadcuberite-994e1d73355df62fb458936433f7478c9a0ef1ba.tar
cuberite-994e1d73355df62fb458936433f7478c9a0ef1ba.tar.gz
cuberite-994e1d73355df62fb458936433f7478c9a0ef1ba.tar.bz2
cuberite-994e1d73355df62fb458936433f7478c9a0ef1ba.tar.lz
cuberite-994e1d73355df62fb458936433f7478c9a0ef1ba.tar.xz
cuberite-994e1d73355df62fb458936433f7478c9a0ef1ba.tar.zst
cuberite-994e1d73355df62fb458936433f7478c9a0ef1ba.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index 611e9f24e..75346f9b2 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1655,12 +1655,12 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
default:
{
- if (m_World->GetTickRandomNumber(10) == 5)
+ if (m_World->GetTickRandomNumber(4) == 4) // Around 25% chance of pickups
{
cItems Drops;
cBlockHandler * Handler = BlockHandler(Block);
- Handler->ConvertToPickups(Drops, area.GetBlockMeta(bx + x, by + y, bz + z));
+ Handler->ConvertToPickups(Drops, area.GetBlockMeta(bx + x, by + y, bz + z)); // Stone becomes cobblestone, coal ore becomes coal, etc.
m_World->SpawnItemPickups(Drops, bx + x, by + y, bz + z);
}
area.SetBlockType(bx + x, by + y, bz + z, E_BLOCK_AIR);