mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
NPM5.0.1, housekeeping
This commit is contained in:
1 parent
fdf8a4b4b1
commit
8ee3109fbc
5 files changed
+1578
-27
No files matched your search
@@ -18,20 +18,7 @@ process.stdin.on('readable', () => {
|
||||
functions.handleInventory(inventory, config);
|
||||
} else if(isJson(chunk) && JSON.parse(chunk).factorioPort){
|
||||
config = JSON.parse(chunk);
|
||||
// if its a LUA table message returning with the exports send em off to master
|
||||
}/* else if(!isJson(chunk) && !!chunk && config){
|
||||
let thing = functions.parseJsString(chunk.replace(/=/g, ":"));
|
||||
Object.keys(thing).forEach(function(playerName){
|
||||
Object.keys(thing[playerName]).forEach(function(itemName){
|
||||
needle.post(config.masterIP + ":" + config.masterPort + '/api/place', {
|
||||
name: itemName,
|
||||
count: thing[playerName][itemName]
|
||||
}, function (err, resp, body) {
|
||||
// console.log(body);
|
||||
});
|
||||
});
|
||||
});
|
||||
}*/
|
||||
}
|
||||
});
|
||||
process.stdin.on('end', () => {
|
||||
process.stdout.write('end');
|
||||
|
||||
Reference in new issue
Block a user