Fix for startup error.

This commit is contained in:
Brianna O'Keefe 2019-02-02 12:10:16 -05:00
parent 0003d000ef
commit 094d08218c

View File

@ -229,6 +229,7 @@ public class SkyBlock extends JavaPlugin {
//Load Stackables //Load Stackables
String path = getDataFolder().toString() + "/island-data"; String path = getDataFolder().toString() + "/island-data";
File[] files = new File(path).listFiles(); File[] files = new File(path).listFiles();
if (files == null) return;
for (File file : files) { for (File file : files) {
File configFile = new File(path); File configFile = new File(path);
FileManager.Config config = fileManager.getConfig(new File(configFile, file.getName())); FileManager.Config config = fileManager.getConfig(new File(configFile, file.getName()));