Don't send corrupt factorio file outputs to plugins

This commit is contained in:
Danielv123 committed 2018-04-16 06:43:22 +02:00
1 parent 4d5b3b855c
commit cf7af19370
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -483,7 +483,7 @@ function instanceManagement() {
fs.writeFileSync(instancedirectory + "/script-output/" + filename, "");
}
for(let i = 0; i < stuff.length; i++) {
if(stuff[i]) {
if(stuff[i] && !stuff[i].includes('\u0000\u0000')) {
plugins[I].scriptOutput(stuff[i]);
}
}
+1 -1
View File
@@ -63,7 +63,7 @@ class ResearchSync {
}
})
if(Object.keys(difference).length > 0){
this.messageInterface("difference from other servers", difference);
this.messageInterface("difference from other servers", JSON.stringify(difference));
}
needle.post(this.config.masterIP + ':' + this.config.masterPort + '/api/editSlaveMeta', {
instanceID: this.config.unique,