init instance at the top, to avoid problems.

This commit is contained in:
DNx5
2015-09-14 04:32:12 +07:00
parent 2fe9e735a1
commit 9736e4c207
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ public class JsonCache {
public JsonCache(AuthMe plugin) {
this.plugin = plugin;
cacheDir = new File(plugin.getDataFolder() + File.separator + "cache");
cacheDir = new File(plugin.getDataFolder(), "cache");
if (!cacheDir.exists() && !cacheDir.isDirectory() && !cacheDir.mkdir()) {
ConsoleLogger.showError("Failed to create cache directory.");
}