summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-04-08 18:03:20 +0200
committerAlexander Harkness <bearbin@gmail.com>2014-04-08 18:03:20 +0200
commitea17441e8ab64388d0ad5098074c7d6dc836332d (patch)
tree0e17ace8563708e87582e360fb06f48cbf0d8ec1 /src
parentMerge pull request #870 from wiseoldman95/patch-1 (diff)
parentFixed missing - that caused all neighbour lookups to go to the chunkmap (diff)
downloadcuberite-ea17441e8ab64388d0ad5098074c7d6dc836332d.tar
cuberite-ea17441e8ab64388d0ad5098074c7d6dc836332d.tar.gz
cuberite-ea17441e8ab64388d0ad5098074c7d6dc836332d.tar.bz2
cuberite-ea17441e8ab64388d0ad5098074c7d6dc836332d.tar.lz
cuberite-ea17441e8ab64388d0ad5098074c7d6dc836332d.tar.xz
cuberite-ea17441e8ab64388d0ad5098074c7d6dc836332d.tar.zst
cuberite-ea17441e8ab64388d0ad5098074c7d6dc836332d.zip
Diffstat (limited to 'src')
-rw-r--r--src/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 22b33c595..fe9cd9b31 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -2511,7 +2511,7 @@ cChunk * cChunk::GetNeighborChunk(int a_BlockX, int a_BlockZ)
cChunk * cChunk::GetRelNeighborChunk(int a_RelX, int a_RelZ)
{
// If the relative coords are too far away, use the parent's chunk lookup instead:
- if ((a_RelX < 128) || (a_RelX > 128) || (a_RelZ < -128) || (a_RelZ > 128))
+ if ((a_RelX < -128) || (a_RelX > 128) || (a_RelZ < -128) || (a_RelZ > 128))
{
int BlockX = m_PosX * cChunkDef::Width + a_RelX;
int BlockZ = m_PosZ * cChunkDef::Width + a_RelZ;