summaryrefslogtreecommitdiffstats
path: root/src/Simulator/RedstoneSimulator.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-15 14:56:32 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-15 14:56:32 +0100
commitb87055f7a5f9fb82378ec6da22002dab8c709fd5 (patch)
tree1dada6041b8131cb7475cd5309b98eecd94a1d55 /src/Simulator/RedstoneSimulator.cpp
parentWires now power repeaters properly (diff)
downloadcuberite-b87055f7a5f9fb82378ec6da22002dab8c709fd5.tar
cuberite-b87055f7a5f9fb82378ec6da22002dab8c709fd5.tar.gz
cuberite-b87055f7a5f9fb82378ec6da22002dab8c709fd5.tar.bz2
cuberite-b87055f7a5f9fb82378ec6da22002dab8c709fd5.tar.lz
cuberite-b87055f7a5f9fb82378ec6da22002dab8c709fd5.tar.xz
cuberite-b87055f7a5f9fb82378ec6da22002dab8c709fd5.tar.zst
cuberite-b87055f7a5f9fb82378ec6da22002dab8c709fd5.zip
Diffstat (limited to 'src/Simulator/RedstoneSimulator.cpp')
-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 f036473c1..e5a3fd735 100644
--- a/src/Simulator/RedstoneSimulator.cpp
+++ b/src/Simulator/RedstoneSimulator.cpp
@@ -490,7 +490,7 @@ void cRedstoneSimulator::HandleRedstoneWire(int a_BlockX, int a_BlockY, int a_Bl
if (m_World.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ) != 0) // A powered wire
{
- for (size_t i = 0; i < 4; i++) // Look for repeaters immediately surrounding self and try to power them
+ for (size_t i = 0; i < 3; i++) // Look for repeaters immediately surrounding self and try to power them
{
if (m_World.GetBlock(a_BlockX + gCrossCoords[i].x, a_BlockY + gCrossCoords[i].y, a_BlockZ + gCrossCoords[i].z) == E_BLOCK_REDSTONE_REPEATER_OFF)
{