From 40eba5244ddd7045a9c3539c5f46c9921301ed90 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 8 Aug 2020 18:22:16 +0100 Subject: Remove the redstone solid block handler - Remove cSolidBlockHandler * Functionality now integrated into simulator dispatcher * Fix door double open/close issues, arisen due to the top/bottom halves getting different power + Small migration to block states for redstone wire --- src/Simulator/Simulator.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Simulator/Simulator.h') diff --git a/src/Simulator/Simulator.h b/src/Simulator/Simulator.h index e18465bee..32a36213b 100644 --- a/src/Simulator/Simulator.h +++ b/src/Simulator/Simulator.h @@ -27,7 +27,7 @@ public: virtual ~cSimulator() {} - // Contains our direct adjacents + /** Contains offsets for direct adjacents of any position. */ static constexpr std::array AdjacentOffsets { { @@ -40,6 +40,9 @@ public: } }; + /** For a given offset from a position, return the offsets that represent the adjacents of the newly offset position, excluding the old position. */ + static std::array GetLinkedOffsets(Vector3i Offset); + protected: friend class cChunk; // Calls AddBlock() in its WakeUpSimulators() function, to speed things up -- cgit v1.2.3