wa-launcher
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -18,3 +18,3 @@ { | ||
"icon": "https://www.worldautomation.net/wp-content/uploads/2018/10/wa-logo-ore.png", | ||
"version": "8.0.6.9", | ||
"version": "8.0.7.0", | ||
"address": "mc.worldautomation.net", | ||
@@ -21,0 +21,0 @@ "minecraftVersion": "1.12.2", |
@@ -305,5 +305,2 @@ const AdmZip=require('adm-zip') | ||
} | ||
rimraf(path.join(ConfigManager.getInstanceDirectory(), 'WorldAutomation.Net-Live', '/resources'), function () { | ||
console.log('Reduced old resources!') | ||
}) | ||
fs.stat(path.join(ConfigManager.getInstanceDirectory(), 'WorldAutomation.Net-Live', '/fixed.txt'), function(err, stat) { | ||
@@ -328,3 +325,21 @@ if(err == null) { | ||
}) | ||
fs.stat(path.join(ConfigManager.getInstanceDirectory(), 'WorldAutomation.Net-Live', '/fixed2.txt'), function(err, stat) { | ||
if(err == null) { | ||
console.log('File exists'); | ||
} else if(err.code == 'ENOENT') { | ||
var rimraf = require('rimraf'); | ||
rimraf(path.join(ConfigManager.getInstanceDirectory(), 'WorldAutomation.Net-Live', '/resources'), function () { | ||
fs.writeFile(path.join(ConfigManager.getInstanceDirectory(), 'WorldAutomation.Net-Live', '/fixed2.txt'), "Fixed duplicate and missing resources!\n", function(err) { | ||
if(err) { | ||
return console.log('Could not write fixed file!'); | ||
} | ||
console.log("The fixed file was saved!"); | ||
}) | ||
console.log('Removed old and duplicate resources successfully.') | ||
}) | ||
fs.writeFile(path.join(ConfigManager.getInstanceDirectory(), 'WorldAutomation.Net-Live', '/fixed2.txt'), 'Fixed duplicate and missing resources!\n'); | ||
} else { | ||
console.log('Some other error: ', err.code); | ||
} | ||
}) | ||
var distribution=path.join(this.launcherDirectory, 'distribution.json') | ||
@@ -331,0 +346,0 @@ var modStringList = fs.readFileSync(distribution) |
{ | ||
"name": "wa-launcher", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Custom modded launcher for WorldAutomation.Net", | ||
@@ -5,0 +5,0 @@ "productName": "WorldAutomation.Net", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12396725
14225