diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-04-08 17:57:35 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-04-08 17:59:50 +0200 |
commit | 18793ca568ed1d26d56ba2afc26ae7b8316159f7 (patch) | |
tree | 630913acb2b7fcd8cd29afa47d79aaf616f850df /src | |
parent | Fixed Endiannes conversion routines for floats and doubles. (diff) | |
download | cuberite-18793ca568ed1d26d56ba2afc26ae7b8316159f7.tar cuberite-18793ca568ed1d26d56ba2afc26ae7b8316159f7.tar.gz cuberite-18793ca568ed1d26d56ba2afc26ae7b8316159f7.tar.bz2 cuberite-18793ca568ed1d26d56ba2afc26ae7b8316159f7.tar.lz cuberite-18793ca568ed1d26d56ba2afc26ae7b8316159f7.tar.xz cuberite-18793ca568ed1d26d56ba2afc26ae7b8316159f7.tar.zst cuberite-18793ca568ed1d26d56ba2afc26ae7b8316159f7.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Chunk.cpp | 2 |
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; |