summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp25
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)