[TASK] Redid the caching system

This commit is contained in:
JKetelaar
2016-01-03 14:39:55 +01:00
parent d8d82f05bc
commit 275b4d633c
6 changed files with 343 additions and 32 deletions
+1 -8
View File
@@ -112,14 +112,7 @@ public final class Landing {
Directories.setServerCompiledDirectory(new File(args[++i]));
break;
case "-clearcache":
File[] cache = Directories.getCachePath().listFiles();
if (cache != null) {
for (File f : cache) {
if (f.exists() && f.canWrite()) {
f.delete();
}
}
}
Directories.clearCache();
break;
case "-mac":
byte[] mac = new byte[6];