From 6c47f46c31813836efa5af199766aff23fed9dd3 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 28 Jul 2020 00:13:07 +0100 Subject: Ensure updating relatives calls the correct base case * Fixed recursive base unintentionally scheduling the origin position for an update because it called the wrong function --- src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h') diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h index b0dad2026..4ccb6838e 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneComparatorHandler.h @@ -129,7 +129,7 @@ public: Data.m_MechanismDelays.erase(a_Position); // Assume that an update (to front power) is needed: - UpdateAdjustedRelatives(a_Chunk, CurrentlyTicking, cBlockComparatorHandler::GetFrontCoordinate(a_Position, a_Meta & 0x3)); + UpdateAdjustedRelative(a_Chunk, CurrentlyTicking, cBlockComparatorHandler::GetFrontCoordinate(a_Position, a_Meta & 0x3)); } } } -- cgit v1.2.3