mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +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
|
// if we got some confirmed orders
|
||||||
//console.log("Importing " + confirmedOrders.length + " items! " + JSON.stringify(confirmedOrders));
|
//console.log("Importing " + confirmedOrders.length + " items! " + JSON.stringify(confirmedOrders));
|
||||||
|
//if (!(confirmedOrders.length>0)){return;}
|
||||||
let cmd="[";
|
let cmd="[";
|
||||||
for(let i=0;i<confirmedOrders.length;i++)
|
for(let i=0;i<confirmedOrders.length;i++)
|
||||||
{
|
{
|
||||||
@@ -839,8 +840,7 @@ function instanceManagement() {
|
|||||||
cmd="[";
|
cmd="[";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"]"+ "')");
|
if (!(cmd=="[")){messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"]"+ "')");}confirmedOrders=[];
|
||||||
confirmedOrders=[];
|
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
// COMBINATOR SIGNALS ---------------------------------------------------------
|
// COMBINATOR SIGNALS ---------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user