diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-08-17 15:48:38 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-08-17 15:48:38 +0200 |
commit | 7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9 (patch) | |
tree | 59128a57d87d7826de450a71e060bd869e837a4a /src/Simulator/VaporizeFluidSimulator.cpp | |
parent | Updated docs to mention InfoDump for creating README.md, etc. (#3895) (diff) | |
download | cuberite-7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9.tar cuberite-7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9.tar.gz cuberite-7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9.tar.bz2 cuberite-7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9.tar.lz cuberite-7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9.tar.xz cuberite-7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9.tar.zst cuberite-7bdbfad1bbabb84e650261ad31d2d9b47f8b12a9.zip |
Diffstat (limited to 'src/Simulator/VaporizeFluidSimulator.cpp')
-rw-r--r-- | src/Simulator/VaporizeFluidSimulator.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Simulator/VaporizeFluidSimulator.cpp b/src/Simulator/VaporizeFluidSimulator.cpp index 1d2db58fb..c023f88c9 100644 --- a/src/Simulator/VaporizeFluidSimulator.cpp +++ b/src/Simulator/VaporizeFluidSimulator.cpp @@ -20,26 +20,26 @@ cVaporizeFluidSimulator::cVaporizeFluidSimulator(cWorld & a_World, BLOCKTYPE a_F -void cVaporizeFluidSimulator::AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, cChunk * a_Chunk) +void cVaporizeFluidSimulator::AddBlock(Vector3i a_Block, cChunk * a_Chunk) { if (a_Chunk == nullptr) { return; } - int RelX = a_BlockX - a_Chunk->GetPosX() * cChunkDef::Width; - int RelZ = a_BlockZ - a_Chunk->GetPosZ() * cChunkDef::Width; - BLOCKTYPE BlockType = a_Chunk->GetBlock(RelX, a_BlockY, RelZ); + int RelX = a_Block.x - a_Chunk->GetPosX() * cChunkDef::Width; + int RelZ = a_Block.z - a_Chunk->GetPosZ() * cChunkDef::Width; + BLOCKTYPE BlockType = a_Chunk->GetBlock(RelX, a_Block.y, RelZ); if ( (BlockType == m_FluidBlock) || (BlockType == m_StationaryFluidBlock) ) { - a_Chunk->SetBlock(RelX, a_BlockY, RelZ, E_BLOCK_AIR, 0); + a_Chunk->SetBlock(RelX, a_Block.y, RelZ, E_BLOCK_AIR, 0); a_Chunk->BroadcastSoundEffect( "block.fire.extinguish", - static_cast<double>(a_BlockX), - static_cast<double>(a_BlockY), - static_cast<double>(a_BlockZ), + static_cast<double>(a_Block.x), + static_cast<double>(a_Block.y), + static_cast<double>(a_Block.z), 1.0f, 0.6f ); |