mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
fixed brakets
This commit is contained in:
1 parent
bcd1ec79cb
commit
a67a1d3d1d
1 file changed
+4
-4
@@ -829,17 +829,17 @@ 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));
|
||||||
let cmd="{";
|
let cmd="[";
|
||||||
for(let i=0;i<confirmedOrders.length;i++)
|
for(let i=0;i<confirmedOrders.length;i++)
|
||||||
{
|
{
|
||||||
cmd+='"'+confirmedOrders[i].name+'"'+":"+confirmedOrders[i].count+",";
|
cmd+='"'+confirmedOrders[i].name+'"'+":"+confirmedOrders[i].count+",";
|
||||||
if(cmd.length>400)//450 //ITS SMALL SO FACTORIO DOESNT SPILT IT INTO MULTIPLE PACKETS
|
if(cmd.length>400)//450 //ITS SMALL SO FACTORIO DOESNT SPILT IT INTO MULTIPLE PACKETS
|
||||||
{
|
{
|
||||||
messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"}"+ "')");
|
messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"]"+ "')");
|
||||||
cmd="{";
|
cmd="[";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"}"+ "')");
|
messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"]"+ "')");
|
||||||
confirmedOrders=[];
|
confirmedOrders=[];
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|||||||
Reference in new issue
Block a user