summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-10 19:35:02 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-10 19:35:02 +0100
commit462829e23d8d3404e58ffc64fd19cf39e9be218f (patch)
tree03967c04656bef031d5640a53163a72f236898bf /src/ChunkMap.cpp
parentAdded extra awesomeness to TNT (diff)
downloadcuberite-462829e23d8d3404e58ffc64fd19cf39e9be218f.tar
cuberite-462829e23d8d3404e58ffc64fd19cf39e9be218f.tar.gz
cuberite-462829e23d8d3404e58ffc64fd19cf39e9be218f.tar.bz2
cuberite-462829e23d8d3404e58ffc64fd19cf39e9be218f.tar.lz
cuberite-462829e23d8d3404e58ffc64fd19cf39e9be218f.tar.xz
cuberite-462829e23d8d3404e58ffc64fd19cf39e9be218f.tar.zst
cuberite-462829e23d8d3404e58ffc64fd19cf39e9be218f.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index b13337b44..e750ad731 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1832,7 +1832,7 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
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);
}
- else if (m_World->GetTickRandomNumber(100) < 20) // 20% chance of flinging stuff around
+ else if (m_World->IsTNTShrapnelEnabled() && (m_World->GetTickRandomNumber(100) < 20)) // 20% chance of flinging stuff around
{
if (!cBlockInfo::FullyOccupiesVoxel(area.GetBlockType(bx + x, by + y, bz + z)))
{