summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-12-05 15:32:19 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-12-05 15:32:19 +0100
commit8acfe21503f4b4fdccd03d0927ec8a11cd6457ec (patch)
tree1ea90086621fc11d433cd94ccd635d54c5a4380a /src/Chunk.cpp
parentMade suggested changes (diff)
parentProtoProxy: Fixed metadata parsing. (diff)
downloadcuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.gz
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.bz2
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.lz
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.xz
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.zst
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 45825a30f..5c9eb892b 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -641,7 +641,7 @@ void cChunk::TickBlock(int a_RelX, int a_RelY, int a_RelZ)
}
cBlockHandler * Handler = BlockHandler(m_BlockTypes[Index]);
ASSERT(Handler != NULL); // Happenned on server restart, FS #243
- Handler->OnUpdate(*this, a_RelX + m_PosX * Width, a_RelY, a_RelZ + m_PosZ * Width);
+ Handler->OnUpdate(*this, a_RelX, a_RelY, a_RelZ);
}
@@ -794,7 +794,7 @@ void cChunk::TickBlocks(void)
unsigned int Index = MakeIndexNoCheck(m_BlockTickX, m_BlockTickY, m_BlockTickZ);
cBlockHandler * Handler = BlockHandler(m_BlockTypes[Index]);
ASSERT(Handler != NULL); // Happenned on server restart, FS #243
- Handler->OnUpdate(*this, m_BlockTickX + m_PosX * Width, m_BlockTickY, m_BlockTickZ + m_PosZ * Width);
+ Handler->OnUpdate(*this, m_BlockTickX, m_BlockTickY, m_BlockTickZ);
} // for i - tickblocks
}