summaryrefslogtreecommitdiffstats
path: root/src/Broadcaster.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-03-18 00:18:02 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-03-19 12:23:30 +0100
commit55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f (patch)
tree4ec40239f2f1e2225b14faba1b4e5aa110e1a471 /src/Broadcaster.cpp
parentDeduplicate WriteBlockEntity (diff)
downloadcuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar
cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.gz
cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.bz2
cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.lz
cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.xz
cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.tar.zst
cuberite-55ba39ca0e2d4aed9c0c1b3e030727728ea0a02f.zip
Diffstat (limited to 'src/Broadcaster.cpp')
-rw-r--r--src/Broadcaster.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Broadcaster.cpp b/src/Broadcaster.cpp
index 1e9f9b876..7cc3deaaa 100644
--- a/src/Broadcaster.cpp
+++ b/src/Broadcaster.cpp
@@ -488,11 +488,11 @@ void cWorld::BroadcastPlayerListUpdateGameMode(const cPlayer & a_Player, const c
-void cWorld::BroadcastPlayerListUpdatePing(const cPlayer & a_Player, const cClientHandle * a_Exclude)
+void cWorld::BroadcastPlayerListUpdatePing()
{
- ForClientsInWorld(*this, a_Exclude, [&](cClientHandle & a_Client)
+ ForClientsInWorld(*this, nullptr, [&](cClientHandle & a_Client)
{
- a_Client.SendPlayerListUpdatePing(a_Player);
+ a_Client.SendPlayerListUpdatePing();
}
);
}