diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-12 23:06:25 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-12 23:06:25 +0200 |
commit | e71e432633a26d0ab24d2da7e3707e4ab7060296 (patch) | |
tree | b7c83bb6d1040f86907a1f49e0d33e9bdd0a645c /src/Simulator | |
parent | Suggestions (diff) | |
download | cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.gz cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.bz2 cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.lz cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.xz cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.tar.zst cuberite-e71e432633a26d0ab24d2da7e3707e4ab7060296.zip |
Diffstat (limited to 'src/Simulator')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp index ffaa02ef9..3c037b6db 100644 --- a/src/Simulator/IncrementalRedstoneSimulator.cpp +++ b/src/Simulator/IncrementalRedstoneSimulator.cpp @@ -1918,7 +1918,7 @@ void cIncrementalRedstoneSimulator::SetBlockPowered(int a_RelBlockX, int a_RelBl // TODO: on C++11 support, change this to a llama function pased to a std::remove_if for (PoweredBlocksList::iterator itr = m_PoweredBlocks->begin(); itr != m_PoweredBlocks->end(); ++itr) { - if ( + if ( itr->a_BlockPos.Equals(Vector3i(SourceX, a_RelSourceY, SourceZ)) && itr->a_SourcePos.Equals(Vector3i(BlockX, a_RelBlockY, BlockZ)) && (m_Chunk->GetBlock(a_RelSourceX, a_RelSourceY, a_RelSourceZ) == E_BLOCK_REDSTONE_WIRE) |