summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-08 19:22:16 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-08 19:22:16 +0200
commit40eba5244ddd7045a9c3539c5f46c9921301ed90 (patch)
tree9edf40e2e5033ad19ce8a0739668500e30de653e /src/BlockEntities
parentconst-ify some Chunk functions (diff)
downloadcuberite-40eba5244ddd7045a9c3539c5f46c9921301ed90.tar
cuberite-40eba5244ddd7045a9c3539c5f46c9921301ed90.tar.gz
cuberite-40eba5244ddd7045a9c3539c5f46c9921301ed90.tar.bz2
cuberite-40eba5244ddd7045a9c3539c5f46c9921301ed90.tar.lz
cuberite-40eba5244ddd7045a9c3539c5f46c9921301ed90.tar.xz
cuberite-40eba5244ddd7045a9c3539c5f46c9921301ed90.tar.zst
cuberite-40eba5244ddd7045a9c3539c5f46c9921301ed90.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/BlockEntityWithItems.cpp5
-rw-r--r--src/BlockEntities/ChestEntity.cpp5
2 files changed, 2 insertions, 8 deletions
diff --git a/src/BlockEntities/BlockEntityWithItems.cpp b/src/BlockEntities/BlockEntityWithItems.cpp
index b2f225aa7..d7ffc960e 100644
--- a/src/BlockEntities/BlockEntityWithItems.cpp
+++ b/src/BlockEntities/BlockEntityWithItems.cpp
@@ -58,10 +58,7 @@ void cBlockEntityWithItems::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
auto & Simulator = *m_World->GetRedstoneSimulator();
// Notify comparators:
- m_World->WakeUpSimulators(m_Pos + Vector3i(1, 0, 0));
- m_World->WakeUpSimulators(m_Pos + Vector3i(-1, 0, 0));
- m_World->WakeUpSimulators(m_Pos + Vector3i(0, 0, 1));
- m_World->WakeUpSimulators(m_Pos + Vector3i(0, 0, -1));
+ m_World->WakeUpSimulators(m_Pos);
return true;
});
}
diff --git a/src/BlockEntities/ChestEntity.cpp b/src/BlockEntities/ChestEntity.cpp
index cb26f4d08..b5d281fec 100644
--- a/src/BlockEntities/ChestEntity.cpp
+++ b/src/BlockEntities/ChestEntity.cpp
@@ -248,10 +248,7 @@ void cChestEntity::OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
auto & Simulator = *m_World->GetRedstoneSimulator();
// Notify comparators:
- m_World->WakeUpSimulators(m_Pos + Vector3i(1, 0, 0));
- m_World->WakeUpSimulators(m_Pos + Vector3i(-1, 0, 0));
- m_World->WakeUpSimulators(m_Pos + Vector3i(0, 0, 1));
- m_World->WakeUpSimulators(m_Pos + Vector3i(0, 0, -1));
+ m_World->WakeUpSimulators(m_Pos);
return true;
});
}