summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwiseoldman95 <wiseoldman95@users.noreply.github.com>2014-04-07 19:26:23 +0200
committerwiseoldman95 <wiseoldman95@users.noreply.github.com>2014-04-07 19:26:23 +0200
commit011123726b2e394c96a4c67b51bd7a86cc1cb13d (patch)
tree5cd2772865e355537d89de63bd83e774a15f1013
parentRemoved unneeded spacings (diff)
downloadcuberite-011123726b2e394c96a4c67b51bd7a86cc1cb13d.tar
cuberite-011123726b2e394c96a4c67b51bd7a86cc1cb13d.tar.gz
cuberite-011123726b2e394c96a4c67b51bd7a86cc1cb13d.tar.bz2
cuberite-011123726b2e394c96a4c67b51bd7a86cc1cb13d.tar.lz
cuberite-011123726b2e394c96a4c67b51bd7a86cc1cb13d.tar.xz
cuberite-011123726b2e394c96a4c67b51bd7a86cc1cb13d.tar.zst
cuberite-011123726b2e394c96a4c67b51bd7a86cc1cb13d.zip
-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 c8509de12..ebe8e2541 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -691,11 +691,11 @@ void cIncrementalRedstoneSimulator::HandleRedstoneRepeater(int a_BlockX, int a_B
// Create a variable holding being on or self powered to avoid multiple lookups.
bool IsOn = (a_MyState == E_BLOCK_REDSTONE_REPEATER_ON);
bool IsSelfPowered = IsRepeaterPowered(a_BlockX, a_BlockY, a_BlockZ, a_Meta);
- if (IsSelfPowered && !IsOn && !IsLocked) // Queue a power change if powered, but not on and not locked.
+ if (IsSelfPowered && !IsOn) // Queue a power change if powered, but not on and not locked.
{
QueueRepeaterPowerChange(a_BlockX, a_BlockY, a_BlockZ, a_Meta, true);
}
- else if (!IsSelfPowered && IsOn && !IsLocked) // Queue a power change if unpowered, on, and not locked.
+ else if (!IsSelfPowered && IsOn) // Queue a power change if unpowered, on, and not locked.
{
QueueRepeaterPowerChange(a_BlockX, a_BlockY, a_BlockZ, a_Meta, false);
}