diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-30 14:52:11 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-30 14:52:11 +0100 |
commit | 363db1bdc46933fc30f99e23736ae0d2f3c90211 (patch) | |
tree | 6f2c6219b83732214379f9fa71cab1ecdd1d603a | |
parent | Improved piston direction checking (diff) | |
download | cuberite-363db1bdc46933fc30f99e23736ae0d2f3c90211.tar cuberite-363db1bdc46933fc30f99e23736ae0d2f3c90211.tar.gz cuberite-363db1bdc46933fc30f99e23736ae0d2f3c90211.tar.bz2 cuberite-363db1bdc46933fc30f99e23736ae0d2f3c90211.tar.lz cuberite-363db1bdc46933fc30f99e23736ae0d2f3c90211.tar.xz cuberite-363db1bdc46933fc30f99e23736ae0d2f3c90211.tar.zst cuberite-363db1bdc46933fc30f99e23736ae0d2f3c90211.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/RedstoneSimulator.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Simulator/RedstoneSimulator.cpp b/src/Simulator/RedstoneSimulator.cpp index b6e1566ef..d9a9372e0 100644 --- a/src/Simulator/RedstoneSimulator.cpp +++ b/src/Simulator/RedstoneSimulator.cpp @@ -1150,7 +1150,6 @@ void cRedstoneSimulator::SetAllDirsAsPowered(int a_BlockX, int a_BlockY, int a_B void cRedstoneSimulator::SetBlockPowered(int a_BlockX, int a_BlockY, int a_BlockZ, int a_SourceX, int a_SourceY, int a_SourceZ, BLOCKTYPE a_SourceBlock) { if (m_World.GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_AIR) { return; } // Don't set air, fixes some bugs (wires powering themselves) - if (AreCoordsPowered(a_BlockX, a_BlockY, a_BlockZ)) { return; } // Check for duplicates sPoweredBlocks RC; RC.a_BlockPos = Vector3i(a_BlockX, a_BlockY, a_BlockZ); @@ -1171,7 +1170,6 @@ void cRedstoneSimulator::SetBlockLinkedPowered(int a_BlockX, int a_BlockY, int a ) { if (m_World.GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_AIR) { return; } // Don't set air, fixes some bugs (wires powering themselves) - if (AreCoordsPowered(a_BlockX, a_BlockY, a_BlockZ)) { return; } // Check for duplicates if (!IsViableMiddleBlock(m_World.GetBlock(a_MiddleX, a_MiddleY, a_MiddleZ))) { return; } // See if middle block is viable sLinkedPoweredBlocks RC; |