summaryrefslogtreecommitdiffstats
path: root/src/Simulator
diff options
context:
space:
mode:
authormBornand <63592189+mBornand@users.noreply.github.com>2020-05-03 01:58:24 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-05-03 12:51:11 +0200
commit1c579f58aaa0957d37d6f66787630a402ed43836 (patch)
tree33a4574d6188ee873f787b2d4e8d780e1423f7b1 /src/Simulator
parentMade some style update and add comments (diff)
downloadcuberite-1c579f58aaa0957d37d6f66787630a402ed43836.tar
cuberite-1c579f58aaa0957d37d6f66787630a402ed43836.tar.gz
cuberite-1c579f58aaa0957d37d6f66787630a402ed43836.tar.bz2
cuberite-1c579f58aaa0957d37d6f66787630a402ed43836.tar.lz
cuberite-1c579f58aaa0957d37d6f66787630a402ed43836.tar.xz
cuberite-1c579f58aaa0957d37d6f66787630a402ed43836.tar.zst
cuberite-1c579f58aaa0957d37d6f66787630a402ed43836.zip
Diffstat (limited to 'src/Simulator')
-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 dfb35a9bf..c48790388 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h
@@ -38,14 +38,7 @@ public:
else
{
/** Check if block is not aligned in z direction */
- if (a_Offset.z == 0)
- {
- return false;
- }
- else
- {
- return true;
- }
+ return (a_Offset.z != 0);
}
case E_BLOCK_ACTIVE_COMPARATOR:
case E_BLOCK_INACTIVE_COMPARATOR: