summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-29 10:57:31 +0200
committerMattes D <github@xoft.cz>2015-05-29 10:57:31 +0200
commit6adf5f5e008cd143b05240cd9886cb98e61e77f4 (patch)
tree64f918963af98da2edac09da1c420bea1773ce8d /src/ClientHandle.cpp
parentFixed Info.lua documentation (diff)
parentMerge branch 'Issue2106' of https://github.com/beeduck/MCServer into Issue2106 (diff)
downloadcuberite-6adf5f5e008cd143b05240cd9886cb98e61e77f4.tar
cuberite-6adf5f5e008cd143b05240cd9886cb98e61e77f4.tar.gz
cuberite-6adf5f5e008cd143b05240cd9886cb98e61e77f4.tar.bz2
cuberite-6adf5f5e008cd143b05240cd9886cb98e61e77f4.tar.lz
cuberite-6adf5f5e008cd143b05240cd9886cb98e61e77f4.tar.xz
cuberite-6adf5f5e008cd143b05240cd9886cb98e61e77f4.tar.zst
cuberite-6adf5f5e008cd143b05240cd9886cb98e61e77f4.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 9644679d7..9cba5619d 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -381,8 +381,8 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID,
// Send player list items
SendPlayerListAddPlayer(*m_Player);
- World->BroadcastPlayerListAddPlayer(*m_Player);
- World->SendPlayerList(m_Player);
+ cRoot::Get()->BroadcastPlayerListsAddPlayer(*m_Player);
+ cRoot::Get()->SendPlayerLists(m_Player);
m_Player->Initialize(*World);
m_State = csAuthenticated;
@@ -1475,7 +1475,7 @@ void cClientHandle::HandleChat(const AString & a_Message)
Msg.AddTextPart(AString("<") + m_Player->GetName() + "> ", Color);
Msg.ParseText(Message);
Msg.UnderlineUrls();
- m_Player->GetWorld()->BroadcastChat(Msg);
+ cRoot::Get()->BroadcastChat(Msg);
}