mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 07:33:12 +09:00
Housekeeping
This commit is contained in:
1 parent
c4ead8c699
commit
fdf8a4b4b1
2 files changed
+4
-8
No files matched your search
@@ -14,8 +14,8 @@ function parseJsString(string){
|
||||
}
|
||||
let inventory = "";
|
||||
eval("inventory = " + string);
|
||||
console.log(string)
|
||||
console.log(inventory)
|
||||
/*console.log(string)
|
||||
console.log(inventory)*/
|
||||
return inventory;
|
||||
/* Example output:
|
||||
{'1':{
|
||||
@@ -119,7 +119,7 @@ function handleInventory(json, config){
|
||||
let stackArray = json.exports[playerName];
|
||||
for(let i = 0; i < stackArray.length; i++){
|
||||
if(stackArray[i].count > 0){
|
||||
console.log("Returning overflow: " + JSON.stringify(stackArray[i]));
|
||||
// console.log("Returning overflow: " + JSON.stringify(stackArray[i]));
|
||||
needle.post(config.masterIP + ":" + config.masterPort + '/api/place', stackArray[i], function (err, resp, body) {
|
||||
// console.log(body);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user