summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-14 19:07:31 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-14 19:07:31 +0200
commit1c6c612f76d25909dd190e08dc9f32d3ab2c507a (patch)
treefb4a4bc5de52ca36c65b8101cfc25898dcffccc3 /src/ChunkMap.cpp
parentUpdate. (diff)
downloadcuberite-1c6c612f76d25909dd190e08dc9f32d3ab2c507a.tar
cuberite-1c6c612f76d25909dd190e08dc9f32d3ab2c507a.tar.gz
cuberite-1c6c612f76d25909dd190e08dc9f32d3ab2c507a.tar.bz2
cuberite-1c6c612f76d25909dd190e08dc9f32d3ab2c507a.tar.lz
cuberite-1c6c612f76d25909dd190e08dc9f32d3ab2c507a.tar.xz
cuberite-1c6c612f76d25909dd190e08dc9f32d3ab2c507a.tar.zst
cuberite-1c6c612f76d25909dd190e08dc9f32d3ab2c507a.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index 0a0a841cd..d25f6d64b 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1837,7 +1837,7 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
// Activate the TNT, with a random fuse between 10 to 30 game ticks
int FuseTime = 10 + m_World->GetTickRandomNumber(20);
m_World->SpawnPrimedTNT(a_BlockX + x + 0.5, a_BlockY + y + 0.5, a_BlockZ + z + 0.5, FuseTime);
- area.SetBlockType(bx + x, by + y, bz + z, E_BLOCK_AIR);
+ area.SetBlockTypeMeta(bx + x, by + y, bz + z, E_BLOCK_AIR, 0);
a_BlocksAffected.push_back(Vector3i(bx + x, by + y, bz + z));
break;
}
@@ -1854,14 +1854,14 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
case E_BLOCK_STATIONARY_WATER:
{
// Turn into simulated water:
- area.SetBlockType(bx + x, by + y, bz + z, E_BLOCK_WATER);
+ area.SetBlockTypeMeta(bx + x, by + y, bz + z, E_BLOCK_WATER, 0);
break;
}
case E_BLOCK_STATIONARY_LAVA:
{
// Turn into simulated lava:
- area.SetBlockType(bx + x, by + y, bz + z, E_BLOCK_LAVA);
+ area.SetBlockTypeMeta(bx + x, by + y, bz + z, E_BLOCK_LAVA, 0);
break;
}
@@ -1894,7 +1894,7 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
m_World->SpawnFallingBlock(bx + x, by + y + 5, bz + z, Block, area.GetBlockMeta(bx + x, by + y, bz + z));
}
- area.SetBlockType(bx + x, by + y, bz + z, E_BLOCK_AIR);
+ area.SetBlockTypeMeta(bx + x, by + y, bz + z, E_BLOCK_AIR, 0);
a_BlocksAffected.push_back(Vector3i(bx + x, by + y, bz + z));
break;