mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-17 17:08:39 +00:00
Server: Improve some log messages (#9820)
This commit is contained in:
parent
f34c62c47f
commit
d1c6cc72cc
2 changed files with 10 additions and 12 deletions
|
@ -656,9 +656,9 @@ bool PlayerSAO::checkMovementCheat()
|
|||
float lag_pool_max = m_env->getMaxLagEstimate() * 2.0;
|
||||
lag_pool_max = MYMAX(lag_pool_max, LAG_POOL_MIN);
|
||||
if (m_time_from_last_teleport > lag_pool_max) {
|
||||
actionstream << "Player " << m_player->getName()
|
||||
<< " moved too fast; resetting position"
|
||||
<< std::endl;
|
||||
actionstream << "Server: " << m_player->getName()
|
||||
<< " moved too fast: V=" << d_vert << ", H=" << d_horiz
|
||||
<< "; resetting position." << std::endl;
|
||||
cheated = true;
|
||||
}
|
||||
setBasePosition(m_last_good_position);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue