mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
Don't send corrupt factorio file outputs to plugins
This commit is contained in:
1 parent
4d5b3b855c
commit
cf7af19370
2 files changed
+2
-2
No files matched your search
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user