summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-28 22:42:16 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-28 22:42:16 +0100
commitafee43d274016987e4884c94112e044dedd5584b (patch)
tree97c27c407232a1d4633eeb5a93159dfa15692420 /source
parentFixed a bug in cChunk::QueueTickBlockNeighbors() that caused the tick thread to overload easily (diff)
downloadcuberite-afee43d274016987e4884c94112e044dedd5584b.tar
cuberite-afee43d274016987e4884c94112e044dedd5584b.tar.gz
cuberite-afee43d274016987e4884c94112e044dedd5584b.tar.bz2
cuberite-afee43d274016987e4884c94112e044dedd5584b.tar.lz
cuberite-afee43d274016987e4884c94112e044dedd5584b.tar.xz
cuberite-afee43d274016987e4884c94112e044dedd5584b.tar.zst
cuberite-afee43d274016987e4884c94112e044dedd5584b.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 60dc5a36c..763555083 100644
--- a/source/Chunk.cpp
+++ b/source/Chunk.cpp
@@ -1208,7 +1208,7 @@ void cChunk::QueueTickBlockNeighbors(int a_RelX, int a_RelY, int a_RelZ)
} ;
for (int i = 0; i < ARRAYCOUNT(Coords); i++)
{
- cChunk * ch = GetNeighborChunk(a_RelX + Coords[i].x, a_RelY, a_RelZ + Coords[i].z);
+ cChunk * ch = GetRelNeighborChunk(a_RelX + Coords[i].x, a_RelY, a_RelZ + Coords[i].z);
if (ch != NULL)
{
ch->QueueTickBlock(a_RelX + Coords[i].x, a_RelY + Coords[i].y, a_RelZ + Coords[i].z);