Attempt to fix an error with weirdly named plugin folders

This commit is contained in:
libraryaddict 2022-03-03 19:25:13 +13:00
parent 3c650ffac2
commit 1ffe9c3d12

View File

@ -149,7 +149,13 @@ public class LibsPremium {
} }
private static void doSecondaryCheck(String version) { private static void doSecondaryCheck(String version) {
File[] files = new File("plugins/LibsDisguises/").listFiles(); File pluginDir = new File("plugins/LibsDisguises/");
if (!pluginDir.exists() && LibsDisguises.getInstance() != null) {
pluginDir = LibsDisguises.getInstance().getDataFolder();
}
File[] files = pluginDir.listFiles();
boolean foundJar = false; boolean foundJar = false;
if (files == null) { if (files == null) {