1
0

Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h

Co-authored-by: peterbell10 <peterbell10@live.co.uk>
This commit is contained in:
mBornand 2020-05-03 01:59:03 +02:00 committed by Tiger Wang
parent 1c579f58aa
commit 5b92e6654f

View File

@ -25,14 +25,7 @@ public:
if ((a_BlockMeta == E_META_REDSTONE_REPEATER_FACING_XP) || (a_BlockMeta == E_META_REDSTONE_REPEATER_FACING_XM)) 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 */ /** Check if Block is not aligned in in x direction */
if (a_Offset.x == 0) return (a_Offset.x != 0);
{
return false;
}
else
{
return true;
}
} }
/** when repeater is in z direction */ /** when repeater is in z direction */
else else