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.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/BlockEntities/ChestEntity.cpp') diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp index 9ede18759..3c80a7aa3 100644 --- a/src/BlockEntities/ChestEntity.cpp +++ b/src/BlockEntities/ChestEntity.cpp @@ -144,6 +144,15 @@ bool cChestEntity::UsedBy(cPlayer * a_Player) +cChestEntity * cChestEntity::GetNeighbour() +{ + return m_Neighbour; +} + + + + + void cChestEntity::ScanNeighbours() { // Callback for finding neighbouring chest. -- cgit v1.2.3