From a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876 Mon Sep 17 00:00:00 2001 From: Aiden Neill Date: Fri, 18 Dec 2020 18:42:34 -0700 Subject: New pull request for daylight sensor (#5066) * Fixes #4918 Co-authored-by: Tiger Wang --- src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp') diff --git a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp index d5433f25a..bb86fbcc6 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp +++ b/src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp @@ -91,9 +91,11 @@ bool ForEachSourceCallback::ShouldQueryLinkedPosition(const BLOCKTYPE Block) { switch (Block) { - // Normally we don't ask solid blocks for power because they don't have any (store, dirt, etc.) + // Normally we don't ask solid blocks for power because they don't have any (stone, dirt, etc.) // However, these are mechanisms that are IsSolid, but still give power. Don't ignore them: case E_BLOCK_BLOCK_OF_REDSTONE: + case E_BLOCK_DAYLIGHT_SENSOR: + case E_BLOCK_INVERTED_DAYLIGHT_SENSOR: case E_BLOCK_OBSERVER: case E_BLOCK_TRAPPED_CHEST: return false; -- cgit v1.2.3