summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:41:18 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-08-28 22:41:18 +0200
commit8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0 (patch)
tree6986b6b8f0346aa6b483d003c4b8292da249aad8
parentSave enderchest block entities to storage (diff)
downloadcuberite-8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0.tar
cuberite-8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0.tar.gz
cuberite-8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0.tar.bz2
cuberite-8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0.tar.lz
cuberite-8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0.tar.xz
cuberite-8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0.tar.zst
cuberite-8fa8ee96fc54bb83d843b0088c0e6d4474fe99c0.zip
-rw-r--r--src/Broadcaster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Broadcaster.cpp b/src/Broadcaster.cpp
index 1c59405e9..e7a29cb5d 100644
--- a/src/Broadcaster.cpp
+++ b/src/Broadcaster.cpp
@@ -316,7 +316,7 @@ void cWorld::BroadcastEntityMetadata(const cEntity & a_Entity, const cClientHand
void cWorld::BroadcastEntityPosition(const cEntity & a_Entity, const cClientHandle * a_Exclude)
{
- ForClientsInWorld(*this, a_Exclude, [&](cClientHandle & a_Client)
+ ForClientsWithEntity(a_Entity, *this, a_Exclude, [&](cClientHandle & a_Client)
{
a_Client.SendEntityPosition(a_Entity);
}