summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator
diff options
context:
space:
mode:
authormBornand <63592189+mBornand@users.noreply.github.com>2020-05-03 01:59:03 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-05-03 12:51:11 +0200
commit5b92e6654f38a3f0f1ef4996601f348c66de9506 (patch)
tree181c69534116718d35d426ed326bde8965e3a477 /src/Simulator/IncrementalRedstoneSimulator
parentUpdate src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h (diff)
downloadcuberite-5b92e6654f38a3f0f1ef4996601f348c66de9506.tar
cuberite-5b92e6654f38a3f0f1ef4996601f348c66de9506.tar.gz
cuberite-5b92e6654f38a3f0f1ef4996601f348c66de9506.tar.bz2
cuberite-5b92e6654f38a3f0f1ef4996601f348c66de9506.tar.lz
cuberite-5b92e6654f38a3f0f1ef4996601f348c66de9506.tar.xz
cuberite-5b92e6654f38a3f0f1ef4996601f348c66de9506.tar.zst
cuberite-5b92e6654f38a3f0f1ef4996601f348c66de9506.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
index c48790388..7a420769b 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
@@ -25,14 +25,7 @@ public:
if ((a_BlockMeta == E_META_REDSTONE_REPEATER_FACING_XP) || (a_BlockMeta == E_META_REDSTONE_REPEATER_FACING_XM))
{
/** Check if Block is not aligned in in x direction */
- if (a_Offset.x == 0)
- {
- return false;
- }
- else
- {
- return true;
- }
+ return (a_Offset.x != 0);
}
/** when repeater is in z direction */
else