diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-28 22:43:12 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-28 22:43:12 +0200 |
commit | d2e92440eb3c4b3b9af42451d6a7406d384307b6 (patch) | |
tree | 7cf37563f3493e7690401d5963f58f4beeb69f71 /src/BlockEntities/ChestEntity.cpp | |
parent | Minor style fixes (diff) | |
download | cuberite-d2e92440eb3c4b3b9af42451d6a7406d384307b6.tar cuberite-d2e92440eb3c4b3b9af42451d6a7406d384307b6.tar.gz cuberite-d2e92440eb3c4b3b9af42451d6a7406d384307b6.tar.bz2 cuberite-d2e92440eb3c4b3b9af42451d6a7406d384307b6.tar.lz cuberite-d2e92440eb3c4b3b9af42451d6a7406d384307b6.tar.xz cuberite-d2e92440eb3c4b3b9af42451d6a7406d384307b6.tar.zst cuberite-d2e92440eb3c4b3b9af42451d6a7406d384307b6.zip |
Diffstat (limited to 'src/BlockEntities/ChestEntity.cpp')
-rw-r--r-- | src/BlockEntities/ChestEntity.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp index 5f99da454..0f005fb53 100644 --- a/src/BlockEntities/ChestEntity.cpp +++ b/src/BlockEntities/ChestEntity.cpp @@ -243,10 +243,7 @@ void cChestEntity::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum) } m_World->MarkChunkDirty(GetChunkX(), GetChunkZ()); - m_World->DoWithChunkAt(m_Pos, [&](cChunk & a_Chunk) - { - // Notify comparators: - m_World->WakeUpSimulators(m_Pos); - return true; - }); + + // Notify comparators: + m_World->WakeUpSimulators(m_Pos); } |