mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 23:04:52 +09:00
Removed argument to improve compat with older node versions
Resolves #25
This commit is contained in:
1 parent
511e31f24f
commit
640a8d4d21
1 file changed
+1
-1
@@ -41,7 +41,7 @@ confirmedOrders = [];
|
||||
lastSignalCheck = Date.now();
|
||||
// provide items --------------------------------------------------------------
|
||||
// trigger when something happens to output.txt
|
||||
fs.watch(config.factorioDirectory + "/script-output/output.txt", "utf8", function(eventType, filename) {
|
||||
fs.watch(config.factorioDirectory + "/script-output/output.txt", function(eventType, filename) {
|
||||
// get array of lines in file
|
||||
items = fs.readFileSync(config.factorioDirectory + "/script-output/output.txt", "utf8").split("\n");
|
||||
// if you found anything, reset the file
|
||||
|
||||
Reference in new issue
Block a user