summaryrefslogtreecommitdiffstats
path: root/src/Simulator
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-04 13:20:16 +0200
committermadmaxoft <github@xoft.cz>2014-08-04 13:20:29 +0200
commit7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a (patch)
tree31ce509c35c190aab82c86b3252f59b8acc74355 /src/Simulator
parentBasicStyleCheck: Dividers are exactly 80 slashes. (diff)
downloadcuberite-7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a.tar
cuberite-7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a.tar.gz
cuberite-7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a.tar.bz2
cuberite-7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a.tar.lz
cuberite-7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a.tar.xz
cuberite-7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a.tar.zst
cuberite-7bfb0b05d0514c47095ba3ec8ebb6a1073d9962a.zip
Diffstat (limited to 'src/Simulator')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index ada8de4b8..c1a2fcaae 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -847,7 +847,7 @@ void cIncrementalRedstoneSimulator::HandleDropSpenser(int a_RelBlockX, int a_Rel
bool m_IsPowered;
public:
cSetPowerToDropSpenser(bool a_IsPowered) : m_IsPowered(a_IsPowered) {}
-
+
virtual bool Item(cDropSpenserEntity * a_DropSpenser) override
{
a_DropSpenser->SetRedstonePower(m_IsPowered);
@@ -948,7 +948,7 @@ void cIncrementalRedstoneSimulator::HandleCommandBlock(int a_RelBlockX, int a_Re
bool m_IsPowered;
public:
cSetPowerToCommandBlock(bool a_IsPowered) : m_IsPowered(a_IsPowered) {}
-
+
virtual bool Item(cCommandBlockEntity * a_CommandBlock) override
{
a_CommandBlock->SetRedstonePower(m_IsPowered);
@@ -1844,7 +1844,7 @@ void cIncrementalRedstoneSimulator::SetDirectionLinkedPowered(int a_RelBlockX, i
{
return;
}
-
+
SetBlockLinkedPowered(a_RelBlockX, a_RelBlockY, a_RelBlockZ - 2, a_RelBlockX, a_RelBlockY, a_RelBlockZ - 1, a_RelBlockX, a_RelBlockY, a_RelBlockZ, MiddleBlock, a_PowerLevel);
SetBlockLinkedPowered(a_RelBlockX + 1, a_RelBlockY, a_RelBlockZ - 1, a_RelBlockX, a_RelBlockY, a_RelBlockZ - 1, a_RelBlockX, a_RelBlockY, a_RelBlockZ, MiddleBlock, a_PowerLevel);
SetBlockLinkedPowered(a_RelBlockX - 1, a_RelBlockY, a_RelBlockZ - 1, a_RelBlockX, a_RelBlockY, a_RelBlockZ - 1, a_RelBlockX, a_RelBlockY, a_RelBlockZ, MiddleBlock, a_PowerLevel);