diff options
author | Aiden Neill <aidenneill@gmail.com> | 2020-12-19 02:42:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 02:42:34 +0100 |
commit | a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876 (patch) | |
tree | 926f6dbc58ba7decf902d4f86bc72690e30337a3 /src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp | |
parent | Added dimension check to nether portal (#5068) (diff) | |
download | cuberite-a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876.tar cuberite-a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876.tar.gz cuberite-a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876.tar.bz2 cuberite-a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876.tar.lz cuberite-a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876.tar.xz cuberite-a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876.tar.zst cuberite-a7e9f88ff3dba3b99b58d2bf9ed2350e6154d876.zip |
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator/ForEachSourceCallback.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |