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 | |
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')
-rw-r--r-- | src/BlockEntities/BlockEntityWithItems.cpp | 9 | ||||
-rw-r--r-- | src/BlockEntities/ChestEntity.cpp | 9 |
2 files changed, 6 insertions, 12 deletions
diff --git a/src/BlockEntities/BlockEntityWithItems.cpp b/src/BlockEntities/BlockEntityWithItems.cpp index 54b67717c..9821bd539 100644 --- a/src/BlockEntities/BlockEntityWithItems.cpp +++ b/src/BlockEntities/BlockEntityWithItems.cpp @@ -53,10 +53,7 @@ void cBlockEntityWithItems::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); } 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); } |