summaryrefslogtreecommitdiffstats
path: root/source/Simulator
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-30 22:15:48 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-30 22:15:48 +0200
commitc4750ef003363a79ac4930f985c4f78002c63642 (patch)
tree57b2783d704ac0c6ac7143bbf239d1ba4b7ba13d /source/Simulator
parentFixed a fire simulator bug (diff)
downloadcuberite-c4750ef003363a79ac4930f985c4f78002c63642.tar
cuberite-c4750ef003363a79ac4930f985c4f78002c63642.tar.gz
cuberite-c4750ef003363a79ac4930f985c4f78002c63642.tar.bz2
cuberite-c4750ef003363a79ac4930f985c4f78002c63642.tar.lz
cuberite-c4750ef003363a79ac4930f985c4f78002c63642.tar.xz
cuberite-c4750ef003363a79ac4930f985c4f78002c63642.tar.zst
cuberite-c4750ef003363a79ac4930f985c4f78002c63642.zip
Diffstat (limited to '')
-rw-r--r--source/Simulator/FireSimulator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Simulator/FireSimulator.cpp b/source/Simulator/FireSimulator.cpp
index e0b4f1f02..da1dc8d15 100644
--- a/source/Simulator/FireSimulator.cpp
+++ b/source/Simulator/FireSimulator.cpp
@@ -221,7 +221,7 @@ void cFireSimulator::AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, cChunk *
int cFireSimulator::GetBurnStepTime(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ)
{
- if ((a_RelY > 0) && (a_RelY < cChunkDef::Height - 1))
+ if (a_RelY > 0)
{
BLOCKTYPE BlockBelow = a_Chunk->GetBlock(a_RelX, a_RelY - 1, a_RelZ);
if (IsForever(BlockBelow))
@@ -260,7 +260,7 @@ int cFireSimulator::GetBurnStepTime(cChunk * a_Chunk, int a_RelX, int a_RelY, in
else
{
// SetBlock just to make sure fire doesn't spawn
- a_Chunk->UnboundedRelSetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_AIR, 0);
+ a_Chunk->SetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_AIR, 0);
return 0;
}
}