fixed bug

fixed so that it doesnt send when cmd=="["
This commit is contained in:
MCRcortex authored and GitHub committed 2018-04-30 19:32:43 +10:00
1 parent 57f7dec956
commit 89ad2baa26
1 file changed
+2 -2
+2 -2
View File
@@ -829,6 +829,7 @@ function instanceManagement() {
}
// if we got some confirmed orders
//console.log("Importing " + confirmedOrders.length + " items! " + JSON.stringify(confirmedOrders));
//if (!(confirmedOrders.length>0)){return;}
let cmd="[";
for(let i=0;i<confirmedOrders.length;i++)
{
@@ -839,8 +840,7 @@ function instanceManagement() {
cmd="[";
}
}
messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"]"+ "')");
confirmedOrders=[];
if (!(cmd=="[")){messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"]"+ "')");}confirmedOrders=[];
}
}, 1000);
// COMBINATOR SIGNALS ---------------------------------------------------------