From 9c9db7882ca78a0cb6910cc2199b0f11067189bd Mon Sep 17 00:00:00 2001 From: MCRcortex Date: Mon, 30 Apr 2018 22:10:13 +1000 Subject: [PATCH] enabled inventoryFrame command splitting --- client.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.js b/client.js index b2a74fed..cbedfcf8 100644 --- a/client.js +++ b/client.js @@ -863,8 +863,7 @@ function instanceManagement() { } inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000); // console.log("RCONing inventory! " + JSON.stringify(inventoryFrame)); - messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '" + JSON.stringify(inventoryFrame) + "')"); - /*let cmd="{"; + let cmd="{"; for (var key in inventoryFrame) { cmd+='"'+key+'"'+":"+inventoryFrame[key]+","; @@ -874,7 +873,7 @@ function instanceManagement() { cmd="{"; } } - if (!(cmd=="[")){messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '"+cmd.slice(0, -1)+"}"+ "')");}*/ + if (!(cmd=="[")){messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '"+cmd.slice(0, -1)+"}"+ "')");} } catch (e){ console.log(e); }