diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-29 00:40:37 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-02 16:52:06 +0200 |
commit | 6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c (patch) | |
tree | 9791617c8179b0f90bd9487069cb5befd868cc27 | |
parent | Delegate simulator wakeup to cChunk (diff) | |
download | cuberite-6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c.tar cuberite-6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c.tar.gz cuberite-6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c.tar.bz2 cuberite-6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c.tar.lz cuberite-6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c.tar.xz cuberite-6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c.tar.zst cuberite-6d7b83a69d80cb7335ebe1dec9f31fca7ef6009c.zip |
-rw-r--r-- | src/Chunk.cpp | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp index 9544899f7..cb14b36a0 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -1379,27 +1379,14 @@ void cChunk::QueueTickBlock(Vector3i a_RelPos) void cChunk::QueueTickBlockNeighbors(Vector3i a_RelPos) { // Contains our direct adjacents - // and one block above and below the laterals (for redstone components) static const Vector3i Offsets[] = { - { 1, 1, 0}, - { 1, 0, 0}, - { 1, -1, 0}, - - {-1, 1, 0}, - {-1, 0, 0}, - {-1, -1, 0}, - - { 0, 1, 1}, - { 0, 0, 1}, - { 0, -1, 1}, - - { 0, 1, -1}, - { 0, 0, -1}, - { 0, -1, -1}, - - { 0, 1, 0}, - { 0, -1, 0}, + { 1, 0, 0 }, + { -1, 0, 0 }, + { 0, 1, 0 }, + { 0, -1, 0 }, + { 0, 0, 1 }, + { 0, 0, -1 }, }; for (const auto & Offset : Offsets) |