From d117a6c5db606a5624f3c910c257d90af5e7ec3b Mon Sep 17 00:00:00 2001 From: npresley0506 <82075033+npresley0506@users.noreply.github.com> Date: Fri, 23 Apr 2021 08:51:59 -0400 Subject: Repaired Hoppers Treating Chests as two entities (#5202) * Repaired Hoppers Treating Chests as two entities * Style changes * style fixes * Fixed style issues, also condensed logic in MoveItemsFromChest * Used m_Neighbour, fixed styling * GetNeighbour not ReturnNeighbour Co-authored-by: npresley --- src/BlockEntities/ChestEntity.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/BlockEntities/ChestEntity.h') diff --git a/src/BlockEntities/ChestEntity.h b/src/BlockEntities/ChestEntity.h index ee59fa7b9..02b182481 100644 --- a/src/BlockEntities/ChestEntity.h +++ b/src/BlockEntities/ChestEntity.h @@ -46,6 +46,9 @@ public: /** Search horizontally adjacent blocks for neighbouring chests of the same type and links them together. */ void ScanNeighbours(); + /** Returns the value of m_Neighbour. */ + cChestEntity * GetNeighbour(); + /** Opens a new chest window where this is the primary chest and any neighbour is the secondary. */ void OpenNewWindow(); -- cgit v1.2.3