changed interval setting to be correct

This commit is contained in:
2023-03-03 12:39:41 -08:00
parent a7406864f3
commit 2859e30482

View File

@ -171,8 +171,8 @@ function message(type, data) { //incoming message
else if (type === "server_data") { else if (type === "server_data") {
if ("fps" in data) { if ("fps" in data) {
server_fps = data.fps; server_fps = data.fps;
clearInterval(send_position_to_server); clearInterval(update_server_tick);
setInterval(send_position_to_server, server_fps); update_server_tick = setInterval(send_position_to_server, server_fps);
} }
} }
else { else {