summaryrefslogtreecommitdiffstats
path: root/src/Simulator
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-11 07:36:31 +0100
committerMattes D <github@xoft.cz>2013-12-11 07:36:31 +0100
commit858b03deb417df50b52dbd9453969f97a47d7807 (patch)
treed8593e82fc4acd6cdec295983e0076c6f4594e47 /src/Simulator
parentMerge pull request #414 from worktycho/abortondeadlock (diff)
parentProvides a possible fix for repeater timings (diff)
downloadcuberite-858b03deb417df50b52dbd9453969f97a47d7807.tar
cuberite-858b03deb417df50b52dbd9453969f97a47d7807.tar.gz
cuberite-858b03deb417df50b52dbd9453969f97a47d7807.tar.bz2
cuberite-858b03deb417df50b52dbd9453969f97a47d7807.tar.lz
cuberite-858b03deb417df50b52dbd9453969f97a47d7807.tar.xz
cuberite-858b03deb417df50b52dbd9453969f97a47d7807.tar.zst
cuberite-858b03deb417df50b52dbd9453969f97a47d7807.zip
Diffstat (limited to 'src/Simulator')
-rw-r--r--src/Simulator/RedstoneSimulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/RedstoneSimulator.cpp b/src/Simulator/RedstoneSimulator.cpp
index 9328b9fcb..daf3aaead 100644
--- a/src/Simulator/RedstoneSimulator.cpp
+++ b/src/Simulator/RedstoneSimulator.cpp
@@ -630,7 +630,7 @@ void cRedstoneSimulator::HandleRedstoneRepeater(int a_BlockX, int a_BlockY, int
// Self not in list, add self to list
sRepeatersDelayList RC;
RC.a_BlockPos = Vector3i(a_BlockX, a_BlockY, a_BlockZ);
- RC.a_DelayTicks = ((a_Meta & 0xC) >> 0x2) + 1;
+ RC.a_DelayTicks = ((a_Meta & 0xC) >> 0x2); // Repeaters power off slower than they power on, so no +1. Why? No idea.
RC.a_ElapsedTicks = 0;
m_RepeatersDelayList.push_back(RC);
return;