mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Remove or restrict some client settings (#15633)
This commit is contained in:
@@ -650,9 +650,10 @@ void Server::AsyncRunStep(float dtime, bool initial_step)
|
||||
Send to clients at constant intervals
|
||||
*/
|
||||
|
||||
static const float time_send_interval = 5.0f;
|
||||
m_time_of_day_send_timer -= dtime;
|
||||
if (m_time_of_day_send_timer < 0.0) {
|
||||
m_time_of_day_send_timer = g_settings->getFloat("time_send_interval");
|
||||
if (m_time_of_day_send_timer < 0) {
|
||||
m_time_of_day_send_timer = time_send_interval;
|
||||
u16 time = m_env->getTimeOfDay();
|
||||
float time_speed = g_settings->getFloat("time_speed");
|
||||
SendTimeOfDay(PEER_ID_INEXISTENT, time, time_speed);
|
||||
|
Reference in New Issue
Block a user