summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-15 20:42:14 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-15 20:42:14 +0200
commitf822a46bdb24a9c693e897d3619ece15a1cc1a5a (patch)
treec96af323012f8c8514a9327defad7b1fbb24907a /src/Simulator/IncrementalRedstoneSimulator.cpp
parentFixed daylight sensor unpowering (diff)
downloadcuberite-f822a46bdb24a9c693e897d3619ece15a1cc1a5a.tar
cuberite-f822a46bdb24a9c693e897d3619ece15a1cc1a5a.tar.gz
cuberite-f822a46bdb24a9c693e897d3619ece15a1cc1a5a.tar.bz2
cuberite-f822a46bdb24a9c693e897d3619ece15a1cc1a5a.tar.lz
cuberite-f822a46bdb24a9c693e897d3619ece15a1cc1a5a.tar.xz
cuberite-f822a46bdb24a9c693e897d3619ece15a1cc1a5a.tar.zst
cuberite-f822a46bdb24a9c693e897d3619ece15a1cc1a5a.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index 3d8229e16..69c8b9f56 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -806,12 +806,12 @@ void cIncrementalRedstoneSimulator::HandleRedstoneRepeater(int a_RelBlockX, int
{
WereItrsChanged = QueueRepeaterPowerChange(a_RelBlockX, a_RelBlockY, a_RelBlockZ, a_Meta, false);
}
- else if (a_Itr != m_RepeatersDelayList->end())
+ else if (a_Itr == m_RepeatersDelayList->end())
{
return;
}
}
- else if (a_Itr != m_RepeatersDelayList->end())
+ else if (a_Itr == m_RepeatersDelayList->end())
{
return;
}