summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-07-26 15:15:34 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-26 15:16:46 +0200
commit2e18e4f51cb0582fe4d237f9241c1813e07a9782 (patch)
tree7d992a1c6de05e6eb57cdd93d1cf5d7d80b2ef4c /src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h
parentUse SimulateChunk in redstone simulator (diff)
downloadcuberite-2e18e4f51cb0582fe4d237f9241c1813e07a9782.tar
cuberite-2e18e4f51cb0582fe4d237f9241c1813e07a9782.tar.gz
cuberite-2e18e4f51cb0582fe4d237f9241c1813e07a9782.tar.bz2
cuberite-2e18e4f51cb0582fe4d237f9241c1813e07a9782.tar.lz
cuberite-2e18e4f51cb0582fe4d237f9241c1813e07a9782.tar.xz
cuberite-2e18e4f51cb0582fe4d237f9241c1813e07a9782.tar.zst
cuberite-2e18e4f51cb0582fe4d237f9241c1813e07a9782.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h
index 5827c806b..b0dad2026 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h
@@ -22,7 +22,7 @@ public:
else
{
// Comparison mode
- return (std::max(a_HighestSidePowerLevel, a_HighestRearPowerLevel) == a_HighestSidePowerLevel) ? 0 : a_HighestRearPowerLevel;
+ return (a_HighestRearPowerLevel < a_HighestSidePowerLevel) ? 0 : a_HighestRearPowerLevel;
}
}