summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-07 00:05:14 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-07 00:05:14 +0200
commite5b42b9f16bd17770cd21dcca7449b9ae466c826 (patch)
treee0abe7492af9b3ea961259d3bf723cbfbda84b89 /src/Simulator/IncrementalRedstoneSimulator.cpp
parentMerge pull request #985 from Howaner/Anvil (diff)
downloadcuberite-e5b42b9f16bd17770cd21dcca7449b9ae466c826.tar
cuberite-e5b42b9f16bd17770cd21dcca7449b9ae466c826.tar.gz
cuberite-e5b42b9f16bd17770cd21dcca7449b9ae466c826.tar.bz2
cuberite-e5b42b9f16bd17770cd21dcca7449b9ae466c826.tar.lz
cuberite-e5b42b9f16bd17770cd21dcca7449b9ae466c826.tar.xz
cuberite-e5b42b9f16bd17770cd21dcca7449b9ae466c826.tar.zst
cuberite-e5b42b9f16bd17770cd21dcca7449b9ae466c826.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index f12bd6d49..074063add 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -615,11 +615,7 @@ void cIncrementalRedstoneSimulator::HandleRedstoneWire(int a_RelBlockX, int a_Re
else if ((i >= 8) && (i <= 11)) // See above, but this is for wire below us
{
BLOCKTYPE Type = 0;
- if (a_RelBlockY - 1 < 0)
- {
- continue;
- }
- if (!m_Chunk->UnboundedRelGetBlockType(a_RelBlockX, a_RelBlockY - 1, a_RelBlockZ, Type))
+ if (!m_Chunk->UnboundedRelGetBlockType(a_RelBlockX + gCrossCoords[i].x, a_RelBlockY, a_RelBlockZ + gCrossCoords[i].z, Type))
{
continue;
}