summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-04-07 18:28:16 +0200
committerAlexander Harkness <bearbin@gmail.com>2014-04-07 18:28:16 +0200
commit5374730753aa5f07dc0b565af1140abb8b694c0b (patch)
tree79c87a5ed9ef47b3993a5f530c451ddf144ff169 /src/Simulator/IncrementalRedstoneSimulator.cpp
parentFixed the redstone simulator. (diff)
downloadcuberite-5374730753aa5f07dc0b565af1140abb8b694c0b.tar
cuberite-5374730753aa5f07dc0b565af1140abb8b694c0b.tar.gz
cuberite-5374730753aa5f07dc0b565af1140abb8b694c0b.tar.bz2
cuberite-5374730753aa5f07dc0b565af1140abb8b694c0b.tar.lz
cuberite-5374730753aa5f07dc0b565af1140abb8b694c0b.tar.xz
cuberite-5374730753aa5f07dc0b565af1140abb8b694c0b.tar.zst
cuberite-5374730753aa5f07dc0b565af1140abb8b694c0b.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index cab3a714a..08a0f42c6 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -1224,7 +1224,7 @@ bool cIncrementalRedstoneSimulator::IsRepeaterPowered(int a_BlockX, int a_BlockY
bool cIncrementalRedstoneSimulator::IsRepeaterLocked(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_Meta)
{
// Change checking direction according to meta rotation.
- switch (m_World.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ) & 0x3) //compare my direction to my neighbor's
+ switch (a_Meta & 0x3) //compare my direction to my neighbor's
{
// If N/S check E/W <<<<<