From 0b81fb63513d3e39b38c7edc2b70854bd3cb479b Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Mon, 7 May 2018 18:11:46 +0200 Subject: [PATCH] Made factorio command ratelimiting configurable --- client.js | 2 +- config.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index f176d98e..41dcb28e 100644 --- a/client.js +++ b/client.js @@ -645,7 +645,7 @@ function instanceManagement() { }); // messageInterface Management - setInterval(function(){let command=commandBuffer.pop();if(command){messageInterfaceInternal(command[0],command[1])}},50); + setInterval(function(){let command=commandBuffer.pop();if(command){messageInterfaceInternal(command[0],command[1])}},config.msBetweenCommands || 50); // Mod uploading and management ----------------------------------------------- // get mod names and hashes diff --git a/config.json b/config.json index 1589b042..01aba037 100644 --- a/config.json +++ b/config.json @@ -37,5 +37,6 @@ }, "logItemTransfers": false, "uploadModsToMaster": true, + "msBetweenCommands": 10, "allowRemoteCommandExecution": false }