mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
fixed crack animation timing in client
This commit is contained in:
@@ -251,6 +251,15 @@ public:
|
||||
v3s16 blockpos = ((ClientMap&)m_env.getMap()).clearTempMod(p);
|
||||
m_env.getMap().updateMeshes(blockpos, m_env.getDayNightRatio());
|
||||
}
|
||||
|
||||
float getAvgRtt()
|
||||
{
|
||||
JMutexAutoLock lock(m_con_mutex);
|
||||
con::Peer *peer = m_con.GetPeerNoEx(PEER_ID_SERVER);
|
||||
if(peer == NULL)
|
||||
return 0.0;
|
||||
return peer->avg_rtt;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user