summaryrefslogtreecommitdiffstats
path: root/source/Chunk.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-15 22:16:43 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-15 22:16:43 +0200
commitf9dab57d8b4b98ec0f624212452c48769c8441d1 (patch)
treed62abda0578d60686466c04c15416646c2e6c643 /source/Chunk.cpp
parentFloody fluid sim: reads params from world.ini; water and lava react together into cobblestone / stone / obsidian (diff)
downloadcuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar
cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.gz
cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.bz2
cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.lz
cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.xz
cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.tar.zst
cuberite-f9dab57d8b4b98ec0f624212452c48769c8441d1.zip
Diffstat (limited to '')
-rw-r--r--source/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Chunk.cpp b/source/Chunk.cpp
index fa9cb91d3..daeb24750 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -955,7 +955,7 @@ void cChunk::CheckNeighbors(int a_RelX, int a_RelY, int a_RelZ)
{
int BlockX = m_PosX * cChunkDef::Width + a_RelX;
int BlockZ = m_PosZ * cChunkDef::Width + a_RelZ;
- if (a_RelX < cChunkDef::Width)
+ if (a_RelX < cChunkDef::Width - 1)
{
m_ToTickBlocks.push_back(MakeIndexNoCheck(a_RelX + 1, a_RelY, a_RelZ));
}