diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-12-05 18:01:23 +0100 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-12-05 18:01:23 +0100 |
commit | d62bfdaca4eb29678c5a82ff69e35965d7007640 (patch) | |
tree | 11b1df8b1322dc9da80d383a07f15d5a0cb978e6 | |
parent | Finished Merge (diff) | |
download | cuberite-d62bfdaca4eb29678c5a82ff69e35965d7007640.tar cuberite-d62bfdaca4eb29678c5a82ff69e35965d7007640.tar.gz cuberite-d62bfdaca4eb29678c5a82ff69e35965d7007640.tar.bz2 cuberite-d62bfdaca4eb29678c5a82ff69e35965d7007640.tar.lz cuberite-d62bfdaca4eb29678c5a82ff69e35965d7007640.tar.xz cuberite-d62bfdaca4eb29678c5a82ff69e35965d7007640.tar.zst cuberite-d62bfdaca4eb29678c5a82ff69e35965d7007640.zip |
-rw-r--r-- | src/Simulator/FireSimulator.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Simulator/FireSimulator.cpp b/src/Simulator/FireSimulator.cpp index 8e46ed320..03e4f6e45 100644 --- a/src/Simulator/FireSimulator.cpp +++ b/src/Simulator/FireSimulator.cpp @@ -136,13 +136,7 @@ void cFireSimulator::SimulateChunk(float a_Dt, int a_ChunkX, int a_ChunkZ, cChun continue; } - BLOCKTYPE Burnee = E_BLOCK_AIR; - if (itr->y > 0) - { - Burnee = a_Chunk->GetBlock(itr->x, itr->y - 1, itr->z); - } - - if(!DoesBurnForever(Burnee)) + if((itr->y > 0) && (!DoesBurnForever(a_Chunk->GetBlock(itr->x, itr->y - 1, itr->z)))) { a_Chunk->SetMeta(idx, BlockMeta + 1); } |