reverted stuff to prev commit

reverted stuff back to prev commit until the mod has been updated
This commit is contained in:
MCRcortex authored and GitHub committed 2018-04-30 21:46:45 +10:00
1 parent f4e03899e7
commit d6369ba295
1 file changed
+3 -3
+3 -3
View File
@@ -863,8 +863,8 @@ function instanceManagement() {
} }
inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000); inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000);
// console.log("RCONing inventory! " + JSON.stringify(inventoryFrame)); // console.log("RCONing inventory! " + JSON.stringify(inventoryFrame));
//messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '" + JSON.stringify(inventoryFrame) + "')"); messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '" + JSON.stringify(inventoryFrame) + "')");
let cmd="{"; /*let cmd="{";
for (var key in inventoryFrame) for (var key in inventoryFrame)
{ {
cmd+='"'+key+'"'+":"+inventoryFrame[key]+","; cmd+='"'+key+'"'+":"+inventoryFrame[key]+",";
@@ -874,7 +874,7 @@ function instanceManagement() {
cmd="{"; 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){ } catch (e){
console.log(e); console.log(e);
} }