diff options
Diffstat (limited to 'src/BlockEntities/ChestEntity.h')
-rw-r--r-- | src/BlockEntities/ChestEntity.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/BlockEntities/ChestEntity.h b/src/BlockEntities/ChestEntity.h index dc26e0895..de4c1cce6 100644 --- a/src/BlockEntities/ChestEntity.h +++ b/src/BlockEntities/ChestEntity.h @@ -2,6 +2,7 @@ #pragma once #include "BlockEntityWithItems.h" +#include "../Simulator/RedstoneSimulator.h" @@ -89,6 +90,13 @@ private: } m_World->MarkChunkDirty(GetChunkX(), GetChunkZ()); + auto Pos = Vector3i(m_PosX, m_PosY, m_PosZ); + m_World->DoWithChunkAt(Pos, [&](cChunk & a_Chunk) + { + m_World->GetRedstoneSimulator()->WakeUp(Pos, &a_Chunk); + return true; + } + ); } } |