mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
fixed bug
fixed so that it doesnt send when cmd=="["
This commit is contained in:
1 parent
57f7dec956
commit
89ad2baa26
1 file changed
+2
-2
@@ -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 ---------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user