summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntityWithItems.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:43:12 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:43:12 +0200
commitd2e92440eb3c4b3b9af42451d6a7406d384307b6 (patch)
tree7cf37563f3493e7690401d5963f58f4beeb69f71 /src/BlockEntities/BlockEntityWithItems.cpp
parentMinor style fixes (diff)
downloadcuberite-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.cpp9
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);
}