diff options
author | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-25 12:38:58 +0200 |
---|---|---|
committer | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-25 12:38:58 +0200 |
commit | 717ad90700064130897540161be968781163b961 (patch) | |
tree | 1702e8435375589143c360238680196ece152c81 /source/Simulator | |
parent | Slight cleanup in the cInventory / cItemGrid API (diff) | |
download | cuberite-717ad90700064130897540161be968781163b961.tar cuberite-717ad90700064130897540161be968781163b961.tar.gz cuberite-717ad90700064130897540161be968781163b961.tar.bz2 cuberite-717ad90700064130897540161be968781163b961.tar.lz cuberite-717ad90700064130897540161be968781163b961.tar.xz cuberite-717ad90700064130897540161be968781163b961.tar.zst cuberite-717ad90700064130897540161be968781163b961.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Simulator/VaporizeFluidSimulator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Simulator/VaporizeFluidSimulator.cpp b/source/Simulator/VaporizeFluidSimulator.cpp index 10466c454..792783915 100644 --- a/source/Simulator/VaporizeFluidSimulator.cpp +++ b/source/Simulator/VaporizeFluidSimulator.cpp @@ -27,7 +27,7 @@ void cVaporizeFluidSimulator::AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, return;
}
int RelX = a_BlockX - a_Chunk->GetPosX() * cChunkDef::Width;
- int RelZ = a_BlockZ - a_Chunk->GetPosZ() * cChunkDef::Width;
+ int RelZ = a_BlockZ - a_Chunk->GetPosZ() * cChunkDef::Width;
BLOCKTYPE BlockType = a_Chunk->GetBlock(RelX, a_BlockY, RelZ);
if (
(BlockType == m_FluidBlock) ||
@@ -35,6 +35,7 @@ void cVaporizeFluidSimulator::AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, )
{
a_Chunk->SetBlock(RelX, a_BlockY, RelZ, E_BLOCK_AIR, 0);
+ a_Chunk->BroadcastSoundEffect("random.fizz", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 1.0f, 0.6f);
}
}
|