summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2014-11-05 21:57:38 +0100
committerLukas Pioch <lukas@zgow.de>2014-11-05 21:57:38 +0100
commit13b20d6fe29ebccc60b6be0d3baa17e0353f4a06 (patch)
tree4782bcbc065945d9d94351c7803caa9e8763e5c1 /src/World.cpp
parentSimplified FindAndDoWithUUID, formatted line (diff)
downloadcuberite-13b20d6fe29ebccc60b6be0d3baa17e0353f4a06.tar
cuberite-13b20d6fe29ebccc60b6be0d3baa17e0353f4a06.tar.gz
cuberite-13b20d6fe29ebccc60b6be0d3baa17e0353f4a06.tar.bz2
cuberite-13b20d6fe29ebccc60b6be0d3baa17e0353f4a06.tar.lz
cuberite-13b20d6fe29ebccc60b6be0d3baa17e0353f4a06.tar.xz
cuberite-13b20d6fe29ebccc60b6be0d3baa17e0353f4a06.tar.zst
cuberite-13b20d6fe29ebccc60b6be0d3baa17e0353f4a06.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 1b4f4f171..1954854f3 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2729,12 +2729,13 @@ bool cWorld::FindAndDoWithPlayer(const AString & a_PlayerNameHint, cPlayerListCa
-bool cWorld::FindAndDoWithUUID(const AString & a_PlayerUUID, cPlayerListCallback & a_Callback)
+bool cWorld::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback & a_Callback)
{
cCSLock Lock(m_CSPlayers);
for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
{
- if ((*itr)->GetUUID() == a_PlayerUUID) { // Match found and exit
+ if ((*itr)->GetUUID() == a_PlayerUUID)
+ {
return a_Callback.Item (*itr);
}
}