diff options
author | daniel0916 <theschokolps@gmail.com> | 2014-04-12 19:55:37 +0200 |
---|---|---|
committer | daniel0916 <theschokolps@gmail.com> | 2014-04-12 19:55:37 +0200 |
commit | 2689a63e9cf61befba38a20b0bc0503070b05dfe (patch) | |
tree | 847a53356aa91ca677c9fc57e917ee9f9bd7fd6d /src/Chunk.cpp | |
parent | Fixed Bookshelves Checking (not completly) (diff) | |
parent | Updated the NetherFort prefabs to current Gallery contents. (diff) | |
download | cuberite-2689a63e9cf61befba38a20b0bc0503070b05dfe.tar cuberite-2689a63e9cf61befba38a20b0bc0503070b05dfe.tar.gz cuberite-2689a63e9cf61befba38a20b0bc0503070b05dfe.tar.bz2 cuberite-2689a63e9cf61befba38a20b0bc0503070b05dfe.tar.lz cuberite-2689a63e9cf61befba38a20b0bc0503070b05dfe.tar.xz cuberite-2689a63e9cf61befba38a20b0bc0503070b05dfe.tar.zst cuberite-2689a63e9cf61befba38a20b0bc0503070b05dfe.zip |
Diffstat (limited to 'src/Chunk.cpp')
-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; |