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/BlockEntityWithItems.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/BlockEntityWithItems.cpp')
-rw-r--r-- | src/BlockEntities/BlockEntityWithItems.cpp | 9 |
1 files changed, 3 insertions, 6 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); } |