1
0

Do not impose redstone wakup penalty for all blocks

This commit is contained in:
Tiger Wang 2020-07-28 23:40:37 +01:00
parent fd5191854d
commit 6d7b83a69d

View File

@ -1379,27 +1379,14 @@ void cChunk::QueueTickBlock(Vector3i a_RelPos)
void cChunk::QueueTickBlockNeighbors(Vector3i a_RelPos) void cChunk::QueueTickBlockNeighbors(Vector3i a_RelPos)
{ {
// Contains our direct adjacents // Contains our direct adjacents
// and one block above and below the laterals (for redstone components)
static const Vector3i Offsets[] = static const Vector3i Offsets[] =
{ {
{ 1, 1, 0}, { 1, 0, 0 },
{ 1, 0, 0}, { -1, 0, 0 },
{ 1, -1, 0}, { 0, 1, 0 },
{ 0, -1, 0 },
{-1, 1, 0}, { 0, 0, 1 },
{-1, 0, 0}, { 0, 0, -1 },
{-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},
}; };
for (const auto & Offset : Offsets) for (const auto & Offset : Offsets)