summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-15 20:12:40 +0100
committermadmaxoft <github@xoft.cz>2013-12-15 20:12:55 +0100
commit4ee4cab2d3f523286ca415cec6b4225fc03b4ea9 (patch)
tree3aae6b77371f5b1518a6e57a2397d6108de2713a /src/ClientHandle.cpp
parentMerge pull request #433 from mc-server/redstoneimprovements (diff)
downloadcuberite-4ee4cab2d3f523286ca415cec6b4225fc03b4ea9.tar
cuberite-4ee4cab2d3f523286ca415cec6b4225fc03b4ea9.tar.gz
cuberite-4ee4cab2d3f523286ca415cec6b4225fc03b4ea9.tar.bz2
cuberite-4ee4cab2d3f523286ca415cec6b4225fc03b4ea9.tar.lz
cuberite-4ee4cab2d3f523286ca415cec6b4225fc03b4ea9.tar.xz
cuberite-4ee4cab2d3f523286ca415cec6b4225fc03b4ea9.tar.zst
cuberite-4ee4cab2d3f523286ca415cec6b4225fc03b4ea9.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index d585eccf1..c5fe270d3 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1498,13 +1498,8 @@ void cClientHandle::Tick(float a_Dt)
}
// If the chunk the player's in was just sent, spawn the player:
- if (m_HasSentPlayerChunk && (m_State != csPlaying) && !IsDestroying())
+ if (m_HasSentPlayerChunk && (m_State == csDownloadingWorld))
{
- if (!cRoot::Get()->GetPluginManager()->CallHookPlayerJoined(*m_Player))
- {
- // Broadcast that this player has joined the game! Yay~
- m_Player->GetWorld()->BroadcastChat(m_Username + " joined the game!", this);
- }
m_Protocol->SendPlayerMoveLook();
m_State = csPlaying;
}