summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-29 23:10:50 +0200
committermadmaxoft <github@xoft.cz>2014-04-29 23:10:50 +0200
commit1dbdb8ed912ff235538b9b2dc75575cadc3a5566 (patch)
tree4a397d2688f242bf0ddef9044c44d94da783e6a8
parentAdded BiomeToString() API function. (diff)
downloadcuberite-1dbdb8ed912ff235538b9b2dc75575cadc3a5566.tar
cuberite-1dbdb8ed912ff235538b9b2dc75575cadc3a5566.tar.gz
cuberite-1dbdb8ed912ff235538b9b2dc75575cadc3a5566.tar.bz2
cuberite-1dbdb8ed912ff235538b9b2dc75575cadc3a5566.tar.lz
cuberite-1dbdb8ed912ff235538b9b2dc75575cadc3a5566.tar.xz
cuberite-1dbdb8ed912ff235538b9b2dc75575cadc3a5566.tar.zst
cuberite-1dbdb8ed912ff235538b9b2dc75575cadc3a5566.zip
-rw-r--r--src/ClientHandle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index f3588c253..2362abe1e 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -336,6 +336,11 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID)
// Send scoreboard data
World->GetScoreBoard().SendTo(*this);
+
+ // Delay the first ping until the client "settles down"
+ // This should fix #889, "BadCast exception, cannot convert bit to fm" error in client
+ cTimer t1;
+ m_LastPingTime = t1.GetNowTime() + 3000; // Send the first KeepAlive packet in 3 seconds
cRoot::Get()->GetPluginManager()->CallHookPlayerSpawned(*m_Player);
}