From 66b64eae1bb7e5bc8fce85e3bb10add582f1207a Mon Sep 17 00:00:00 2001 From: MCRcortex Date: Mon, 30 Apr 2018 18:37:08 +1000 Subject: [PATCH] started fixing receiveInventory --- client.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/client.js b/client.js index 05c81ff1..2583f38c 100644 --- a/client.js +++ b/client.js @@ -828,7 +828,7 @@ function instanceManagement() { }); } // if we got some confirmed orders - // console.log("Importing " + confirmedOrders.length + " items! " + JSON.stringify(confirmedOrders)); + console.log("Importing " + confirmedOrders.length + " items! " + JSON.stringify(confirmedOrders)); let cmd="["; for(let i=0;i400)//450 //ITS SMALL SO FACTORIO DOESNT SPILT IT INTO MULTIPLE PACKETS + { + messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '"+cmd.slice(0, -1)+"}"+ "')"); + cmd="{"; + } + } + messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '"+cmd.slice(0, -1)+"}"+ "')");*/ } catch (e){ console.log(e); } } }); - }, 1000); + }, 1500); // Make sure world has its worldID setTimeout(function(){ messageInterface("/silent-command remote.call('clusterio','setWorldID',"+instanceconfig.unique+")")