From 6514462a1db6300fce2f524faf51e273c4c9535a Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Mon, 30 Apr 2018 23:47:31 +0200 Subject: [PATCH] Increased max command size for imports --- client.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.js b/client.js index 2533059a..fcda464c 100644 --- a/client.js +++ b/client.js @@ -834,13 +834,14 @@ function instanceManagement() { for(let i=0;i400)//450 //ITS SMALL SO FACTORIO DOESNT SPILT IT INTO MULTIPLE PACKETS + if(cmd.length>8000)//450 //ITS SMALL SO FACTORIO DOESNT SPILT IT INTO MULTIPLE PACKETS { messageInterface("/silent-command remote.call('clusterio', 'importMany', '"+cmd.slice(0, -1)+"]"+ "')"); cmd="["; } } - if (!(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 ---------------------------------------------------------