From 5b92e6654f38a3f0f1ef4996601f348c66de9506 Mon Sep 17 00:00:00 2001 From: mBornand <63592189+mBornand@users.noreply.github.com> Date: Sun, 3 May 2020 01:59:03 +0200 Subject: Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h Co-authored-by: peterbell10 --- src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h | 9 +-------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3